8 direction behavior is used for the Player’s movement like (up, down, left, right), arrow keys or (W, S, A, D) & aiming the target & shooting is based on cursor movements and clicks. Player collisions with zombies make the player decrease health. Player collisions with first aid boxes increase health. Also Player plays animations. and you can play on mobile movement for the player based on touch like (joystick, reload icon, replaced icon).line of sight and bullet behaviors are used for zombies movements ai.
Game Logic
Victory is based on when the player kills all the zombies level completed and a victory popup will appear.
GameOver is based on if the player hit by the zombies decreases health (max health is 100) and when the health goes 0 the player dies. Game over Popup will appear.
Game Save Data Local storage
The game saves Progress, coins & best score when the victory triggers. Progress is responsible for level unlock.
They are first stored in the global variables to work, throw the layouts and store these global variables to the dictionary then saves the dictionary AsJSON to local storage.
At the Menu sheet, the game checks the local storage to load the dictionary.