Shooting Game
Game Controls:
Move Player Left:
- Press the Left Arrow (
←) key on your keyboard to move the player (blue square) to the left.
- Press the Left Arrow (
Move Player Right:
- Press the Right Arrow (
→) key on your keyboard to move the player (blue square) to the right.
- Press the Right Arrow (
Shoot Bullet:
- Press the Spacebar key on your keyboard to shoot a bullet from the player's position. Each time you press the spacebar, a new bullet (red rectangle) is fired upward.
Game Over:
- If an enemy (red rectangle) collides with the player (blue square), the game will end and show a Game Over message with your final score in an alert box.
Score: 0
Comments
Post a Comment