real-jiakai / bear-snake-game

A web-based Bear Snake game - a fun twist on the classic Snake game with a cute bear theme.

Home Page:https://bear.gujiakai.top

Repository from Github https://github.comreal-jiakai/bear-snake-gameRepository from Github https://github.comreal-jiakai/bear-snake-game

Bear Snake Game

A web-based Bear Snake game - a fun twist on the classic Snake game with a cute bear theme.

Project Structure

/
├── index.html              # Main game page
├── src/
│   ├── css/
│   │   └── style.css       # Stylesheets
│   └── js/
│       └── bear_snake.js   # Game logic
└── README.md               # Project documentation

Features

  • 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

How to Play

  1. Open index.html in a web browser
  2. Click the "Start" button to begin the game
  3. Control the bear using arrow keys, WASD keys, or on-screen buttons
  4. Collect red food to grow longer and earn points
  5. Special golden food appears occasionally for bonus points
  6. Avoid hitting the walls or yourself

Game Controls

  • 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

Technical Implementation

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.

Game Mechanics

  • 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

License

This project is available under the MIT License.

Acknowledgements

  • Made with ❤️ with Claude Code
  • Inspired by the classic Snake game

About

A web-based Bear Snake game - a fun twist on the classic Snake game with a cute bear theme.

https://bear.gujiakai.top


Languages

Language:JavaScript 79.8%Language:HTML 10.4%Language:CSS 9.8%