r/howdidtheycodeit • u/RyotaLeJap • Apr 06 '21
How did they code Magic Touch: Wizard for Hire?
Hi, I am wondering what kind of tech stack did they use to code Magic Touch: Wizard for Hire. The game looks like this:https://www.youtube.com/watch?v=bTTAmwbz864
Any resources would be helpful.
15
Upvotes
5
u/vovo801 Apr 06 '21
This is doable in Unity3d with the help of an asset like Fingers for touch gesture detection:
https://assetstore.unity.com/packages/tools/input-management/fingers-touch-gestures-for-unity-41076
I've tried this asset for a pet project and it seemed to work well.
3
u/JollyGreenLittleGuy Apr 06 '21
Gesture detection in games goes back to at least the Black and White days. A core element of Black and White is you could cast spells as a god by making gestures/symbols with your mouse.
2
u/TMoneyGamesStudio Apr 06 '21
Unity has a free touch control system that is using both the legacy and new input systems. If you want the hands to make the gestures on screen use the first person camera in the standard asset pack, also free for the game camera and model the hands and parent them to the camera or buy some on the asset store. There are more free assets on the Unity asset store to make the entire game for free. Scripting wise, not sure if you know c# coding or not. But you can make the game in unity and then under build settings change it to android or iOS build or any other build that Unity uses.
3
u/chozabu Apr 06 '21
Seems it runs on android+ios - so it probably uses a 3rd party engine that runs on both those systems, like one of these: https://thetool.io/2021/mobile-game-development-creation
May well not have much other tech stack, perhaps a gesture recognition lib, though that'd probably be a plugin for the engine they picked.
2
u/packetpirate Apr 13 '21
The simplest gesture recognition algorithm I've come across is one that was referred to as "flash gestures" in a random paper I found that I have since lost.
Basically, you break down gestures into 8 simple directions... up, down, left, right, diagonal, ... Then, you encode those directions as digits 1-8 and create a "string" to encode the gesture. Then, you use the levenshtein distance algorithm to find the closest match to what was drawn using canonical gesture strings.
0
u/[deleted] Apr 06 '21
[deleted] — view deleted comment