I added a couple features to my Number Wizard GUI game.
- Made it a “duel” between the player and computer to guess the other’s number
- Context for the game activity
- Little dialogue exchanges as part of the game flow
I am proud of what I was able to put together however I’m pulling up stakes on this project for a little while as I shot myself in the foot with the “animations”. Basically I used a number of coroutines to manage sprite changes when it should have been actual animations.
As a result I can’t begin a second loop of the main game function after the player and computer have had a guess at each other’s number. , I’m uploading what I achieved so far and will come back to rewrite later when I’ve learned to used animators. If anyone sees a “quick fix” that doesn’t rely on replacing all sprite change coroutines with animations, please let me know.
Game can be played in it’s current state here.
Enter your number as 1 to see the wizard’s win scene.
Enter your guess as 1 to see the player’s win scene.
Code can be found here on GitHub.
As I’ve uploaded I’ve found that the input validation doesn’t work in the browser build though it does within Unity Editor. Can’t see why but again something I’ll check out when I circle back to remake this project with improved knowledge.
In the mean time, here’s a video of how it should play.