A web-based Bear Snake game - a fun twist on the classic Snake game with a cute bear theme.
/
├── index.html # Main game page
├── src/
│ ├── css/
│ │ └── style.css # Stylesheets
│ └── js/
│ └── bear_snake.js # Game logic
└── README.md # Project documentation
- Web-based gameplay: Play directly in your browser
- Responsive design: Works on different device sizes
- Cute bear theme: Rather than a traditional snake
- Special food system: Regular food and golden bonus food
- Touch controls: On-screen buttons for mobile play
- Open
index.html
in a web browser - Click the "Start" button to begin the game
- Control the bear using arrow keys, WASD keys, or on-screen buttons
- Collect red food to grow longer and earn points
- Special golden food appears occasionally for bonus points
- Avoid hitting the walls or yourself
- Arrow keys or WASD keys for keyboard control
- On-screen buttons for touch/mobile control
- Red food gives 10 points and increases length
- Golden bonus food gives 50 points
This project uses the following technologies:
- HTML5 Canvas: For game graphics rendering
- JavaScript: For game logic and interactivity
- CSS3: For styling and responsive design
The game is built using vanilla JavaScript and HTML5 Canvas, with no external dependencies.
- The bear moves in a grid-based environment
- Each time the bear eats food, it grows longer
- Golden bonus food appears randomly and disappears after a short time
- The game ends when the bear hits a wall or itself
- The score increases with each food item collected
This project is available under the MIT License.
- Made with ❤️ with Claude Code
- Inspired by the classic Snake game