Posts

Showing posts from November, 2024

Shooting Game

Game Controls: Move Player Left: Press the Left Arrow ( ← ) key on your keyboard to move the player (blue square) to the left. Move Player Right: Press the Right Arrow ( → ) key on your keyboard to move the player (blue square) to the right. 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. Shooting Action Game Score: 0

Snake Game

How to Play: Arrow Keys ( ← , ↑ , → , ↓ ) control the snake's movement. Eat food: The snake grows longer each time it eats the red food. Avoid hitting the walls or the snake's own body. Snake Game Score: 0