
Dino Run Dev Log
Replay Timing Issues
The game logic itself took less than an 20 minutes.
Adding little elements takes me a a hell of a lot longer..
The replay system works most of the time. It seems that every once in a while the timing is off. I think the fix is to not rely on the replay collisions and instead record them and manually trigger them.
(NOTE) Turns out it was just a timing issue in my code.
Replay System
I started writing a replay system.
As soon as a game ends I want it to replay that last game. The idea is to keep track of user input and game entity events.
A simple prop array should do the trick.
I reset the frame counter at endgame. Now instead of tracking user input or having an algorithm run the entity events I trigger the events only at the frame it was fired.
If it works out correctly the replay will automatically loop itself.
Dino-Run – It Starts
To get this project off to a quick start I'm re-imagining a game I made for KaiOS a few years ago.
This is Dino-Run. Not to be confused with the Google Chrome dino game. You run to catch chicken legs and avoid the falling lava rocks.