Skip to content

πŸπŸ› A classical, funny and much more challenging snake game.

Notifications You must be signed in to change notification settings

tangbc/snake-eat-bugs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

27 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

snake-eat-bugs

πŸπŸ› A classical and funny, much more challenging snake game.

Start game

Play online: https://tangbc.github.io/snake-eat-bugs

Game rules

  • Snake cannot eat themselves.

  • Snake cannot eat bug leftovers.

  • Snake cannot over the boundary line.

Todo list

  • Sound effects.

  • Scores ranking.

  • Mobile side support.

  • Prevent bugs trapped area.

  • Improve interval time loop.

Contributions

Report a bug or step to develop:

git clone https://github.com/tangbc/snake-eat-bugs.git

cd /snake-eat-bugs

npm install

npm run dev

Some solutions

1. Prevent bugs trapped area

What's the trapped area mean? look at this screenshot:

In this condition snake can't eat current bug, so it's a problem. We just need list all conditions of trapped area to fix this bug:

Red block is exist bug leftovers, green block is new, if green block will cause these 12 conditions above, we just remove it.

About

πŸπŸ› A classical, funny and much more challenging snake game.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published