Skip to content

Create a snake game#1

Open
feason wants to merge 1 commit into
masterfrom
cursor/create-a-snake-game-6791
Open

Create a snake game#1
feason wants to merge 1 commit into
masterfrom
cursor/create-a-snake-game-6791

Conversation

@feason

@feason feason commented Aug 8, 2025

Copy link
Copy Markdown
Owner

Description

  • This PR implements a classic Snake game using HTML5 Canvas and JavaScript.
  • Summary of changes:
    • Adds index.html to set up the game's UI, including the canvas, score display, high score, controls, and a game over overlay.
    • Adds game.js which contains the complete game logic:
      • Snake movement, growth, and collision detection (walls and self).
      • Random food generation, ensuring it doesn't overlap with the snake.
      • Score tracking and high score persistence using local storage.
      • Dynamic game speed increase based on score.
      • Pause/resume functionality.
      • Rendering with modern visual effects for the snake, food, and background.
  • Issues fixed: None. This PR fulfills a new feature request.

Screenshots/videos:

Checklist:


Open in Cursor Open in Web

@cursor

cursor Bot commented Aug 8, 2025

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@feason feason marked this pull request as ready for review August 8, 2025 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants