31 points · by memalign · 1y ago · 20 comments
In Counting Tap Toy, you can tap to count various aquatic creatures. The count is displayed and announced. My hope is that seeing and hearing the numbers will reinforce 14’s existence.
I find tapping all the fish while listening to the songs and popping sound effects to be pretty relaxing too.
Technical details: https://memalign.github.io/p/counting.html
This is the fourth “Tap Toy”, joining:
- Slice: https://memalign.github.io/m/slice/index.html
- Fireworks: https://memalign.github.io/m/fireworks/index.html
- Original: https://memalign.github.io/m/taptoy/index.html
It's very choppy on phone when bursting, animation looks awesome but need some optimisation I guess.
1. Rather than waiting for the game engine update callback, I handle touch/mouse input immediately (required by SpeechSynthesis) so multiple input events can trigger before the game engine cleans up a destroyed object (fish).
2. I incremented score synchronously but marked a fish as destroyed asynchronously so there was a window where another click on the fish could occur.
Thanks again!
One time I ended up hitting a bug where the new level would start while an extra fish from the previous level was still there. If anybody figures out a way to reproduce this, please share!
For speed tappers who don’t need the number to be announced, I made it possible to mute the announcements.
(I didn't know the goal/purpose of the game at that time, so I just clicked through, hoping for something to change)
(Top speed: 127351 km/h)