FOGA 1.6 Fix demo mode hard stuck


The previous version had a bug which locked the game in the demo presentation mode if the player started the game within a 0.5s window. 

Let me go into a little detail what happen. While on the start screen there's two ways to progress from it. One way is to do nothing and the game will start in a demo mode and show 2 NPCs playing against each other for a few seconds, then returning to the start screen again. The other way is to press start to start the game. Both ways have a delayed effect, aka when the action starts there's a short window when nothing happens. The demo mode has a 0.5 delay and the starting game 2s. There's a check to not start the demo mode transition if the player press start. Because the demo mode also have a transition, if the player press start in that 0.5s window the game will check a few variables for starting the game, but before it starts the demo mode will start instead. One of the variables checked is the "the game is starting", to prevent the game from starting multiple times if a  player mashes the button, a game can only start once. Since the variable is checked in the demo mode, it will return to the start screen when the demo is finished with the variable already checked and preventing the player to start the game. 

It was fixed by adding a extra check after the 0.5s window and not transitioning into demo mode if the game is about the start normally. Also the "the game is starting" variable is always turned off when entering the start screen.

Files

FOGA 1.6.zip 88 MB
Sep 26, 2022
FOGA 1.6 (html5).zip Play in browser
Sep 26, 2022

Get FOGA

Leave a comment

Log in with itch.io to leave a comment.