21st of September, 2018
I decided to add a simplistic timer into the game that tracks how long your playthrough lasts. Due to limitations with the engine it only tracks time on the overworld properly, in battles it just adds five seconds during each turn (this was the best compromise I could find).
For technical details on how this works: Every frame the game will add 1 to a variable called 'timer'. As the game runs at 60fps we can just divide that timer number by 60 to get the number of seconds - for example a timer value of 193 would be 3 seconds. The time value in seconds is then saved to two variables, 'Hours' and 'Minutes'. The hours value is divided by 3600 (the number of seconds in one hour) and the minutes value is the seconds mod 60 (divided by 60 and the remainder is saved). This means that I store the number of total hours the playthrough took, as well as the number of minutes from 0 to 59. Then it's just a matter of displaying these numbers to the player and in the right order, which is the easy part.
Get Aretisia: Tenebris Dominus
Aretisia: Tenebris Dominus
Step into the world of Aretisia and save the future to come.
Status | In development |
Author | Ema Pex |
Genre | Role Playing, Adventure |
Tags | 2D, Fantasy, Narrative, Singleplayer, Turn-Based Combat |
Languages | English |
Accessibility | Configurable controls |
More posts
- Demo 2 is out!Jul 13, 2023
- Demo 2 ChangelogJun 06, 2023
- Closing in on Demo 2Jun 02, 2023
- Update on Demo 2May 19, 2023
- Demo 2 will be BIG.Apr 26, 2023
- Demo 1 now available!Apr 13, 2023
- Progress on Demo 1Apr 04, 2023
- Release CycleMar 16, 2023
- Going BackwardsFeb 25, 2023
- More ReworksJan 15, 2023
Leave a comment
Log in with itch.io to leave a comment.