I coded this game as my first semester final for my introduction to computer programming class. I wanted to create a game in which enemies are searching for the player and he/she must avoid being seen. I decided to implement a time limit, which doubles as the player's score. If it reaches 0, the game is over. The player can collect points (small yellow squares) to increase the amount of time they have left, as well as their score. Movement is controlled by the arrow keys (if the Stealth Square is moving too slowly, change the key repeat delay in System Settings > Keyboard). The blue shapes represent walls, and they will push the player back if he/she collides with it. Whenever a collision occurs, the wall checks if the player is above,to the left, to the right, or underneath, and then pushes the player in the opposite direction. The large yellow squares in front of the red circles represent the enemy's line of sight. If the player is caught in the line of sight of an enemy, the screen will fade and the player will be placed at the beginning of the level. The larger, border-less yellow squares are the keys, and the transparent gray rectangles are the doors. Once all of the doors in a level have been opened (they turn white after corresponding key is collected) the exit will began to changing colors to attract the players attention.
Log in or sign up for Devpost to join the conversation.