ππ A classical and funny, much more challenging snake game.
Play online: https://tangbc.github.io/snake-eat-bugs
-
Snake cannot eat themselves.
-
Snake cannot eat bug leftovers.
-
Snake cannot over the boundary line.
-
Sound effects.
-
Scores ranking.
-
Mobile side support.
-
Prevent bugs trapped area.
-
Improve interval time loop.
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
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.