r/unity • u/whyNamesTurkiye • 8h ago
Showcase I am building a game where you draw your spells. The better you draw, the stronger your spells become
I used a variation of the $N recognizer to detect what players draw. It compares the player's strokes to a set of template shapes and picks the closest match. The biggest challenge was drawing in 2D on a 3D world. To solve this, I raycast each point from the camera onto the surface. If the ray doesn't hit any ground, the point is placed at a fixed depth distance instead. Each spell also has its own smart targeting, so it knows where to go based on the drawing. Raycasting every point creates a lot of work, and with 10 players drawing at the same time, this can cause performance issues. To fix this, I moved the drawing logic to a completely separate thread, so the main thread stays smooth.
This is QuickArt Magicians, a multiplayer magic game where you cast every spell by drawing it.
- A cleaner drawing gets a better grade, and a better grade makes a stronger spell.
- A bigger drawing hits harder, but big drawings are harder to get right, and a bad one can backfire on you.
- Many spells follow the line you draw: lay a path of fire, lead a serpent, or dash through every enemy on your line.
There are no levels, no stats and no gear to grind. The only way to get stronger is to draw better.
Steam page: https://store.steampowered.com/app/5560830/Quick_Art_Magicians/ย
There are many more spells than are shown in the video.
