Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

It's Snake! I've never been very good at it.

I had a strange bug where I reversed into myself and lost. It happened twice and neither time on purpose, but when trying to cause it to happen by specifically pushing in the opposite direction I was going it wouldn't occur. 🤷‍♀️

(+1)

thanks.. i wasn’t also not that good at it ;D

yeah, i know that bug .. it happens when you press the keys to quick .. to prevent the “going back” i added bools for all directions, pressing a key sets it and pressing another resets that and sets it new to another direction .. so when you go up, isUp is set to true and prevents going down .. when you now press left or right and right afterwards down (before the head moved) it goes down into itself .. need to find a way, to prevent input, before the direction changed ..

only time moving in the opposite direction is right on the start you can press left while the head is moving to the right ..