Drawn to Magic is an open-world RPG that lets you cast spells with gestures. Explore a rich and dynamic world full of secrets, quests, and characters. Customize your character with items, skills, and perks. Build your own home or base and craft your own gear.
Implement player glyph recognition for spell casting
Description:
Implement a feature where the player would draw a glyph on the screen, and that glyph would correspond to a spell that the player would cast. The game should recognize a glyph that the player has drawn and determine if the spell associated with the glyph is something the player has unlocked or researched. If the spell is available, the game should cast that spell.
Requirements:
The game should allow the player to draw a glyph on the screen using input devices such as a mouse or a touch screen.
The game should have a system to recognize the glyph drawn by the player and determine which spell is associated with the glyph.
The game should check if the player has unlocked or researched the spell before allowing them to cast it.
If the spell is available, the game should cast the spell.
Utilize the $Q multi-stroke recognizer algorithm to recognize more complex glyphs that require more than one stroke. This algorithm is optimized for low-powered mobiles.
Improve the glyph recognition feature #3 and add new features
Description
The glyph recognition feature is a core mechanic of the game that allows the player to draw symbols on the screen and trigger different effects. However, the current implementation has some limitations and bugs that need to be fixed. Additionally, some new features are need to be added to enhance the gameplay and the user experience.
Implement a way to save the input data to a file for the algorithm to use for preciseness. This will help to improve the accuracy and consistency of the glyph recognition.
Implement a way for the player to save unique glyphs that they create or discover in the game.
Implement a way for the editor to create glyph data to train the model. This will enable the developers to add new glyphs to the game without having to hard-code them or rely on external sources.
Implement a way to choose between one, two, and three stroke gestures. This will increase the variety and complexity of the glyphs and allow for different levels of difficulty and challenge.
Currently, the player is able to draw all over the scene even when the drawing rectangle is resized. This can lead to unintended behavior and a confusing user experience.
The drawing scene should be updated so that the player can only draw within the borders of the drawing rectangle.