12 years ago

Fixed Bug in Snake Game


Well, I fixed the main bug in the Snake game with the help of a friend. For those who might be interested, what it came down to is that C#/Windows was automatically queuing keystrokes without my knowledge or understanding. I had set up the game loop logic erroneously, where it didn’t draw a new frame if a keystroke was “available.” Therefore, if you pressed more than one key in quick succession, it didn’t draw new frames until it went through the queue of keystrokes you had pressed, BUT it would keep updating which direction your character was supposed to be pointing. This would, more often than not, lead to your snake eating itself and committing suicide. I completely fixed this by changing around the looping statement just slightly. There are a few small bugs, I’m considering a name change, but the game is in much better shape. Plus, for the first time, I’ve added music to a game! And the only appropriate kind: PC speaker bleep-bloop style.



0 comments

Loading...

Next up

We are under attack!

Enemies can also suddenly spawn through Realm Rifts. These Rift Spawns are going to be stronger than the ones wandering around. TBD on the enemies... #screenshotsaturday #godstear #madewithunity

I have added rewards for quests so that villagers can give you something in return for your hard work helping them. 🥳

I want to know - what's your favourite quest reward?

Werehog transformation process. #sonicunleashed

The Darkside Detective: A Fumble in the Dark is out TODAY! 🖱️Advanced pointing, clicking action 🖨️Very funny words! Loads of them! 👻6 sarcastic, spectral cases to solve

One of the most critical update for Sunblaze demo. Now you are able to pet a cat! Finally!

Spaaaace~

These are background sprites I've created for a game I'm working on at school ^w^ Click on the post to see how the sprites connect. You won't regret it! (personally, I think it's pretty heheh)

Drawn in Piskel using my mouse. Whaddya think?

Regular exercise is key for healthy wings.

Try it out!

https://gamejolt.com/games/AeonNightmares/605184

We're glad to announce that Baby Dino Adventures 🦖 is now available in Early Access here on GameJolt! Link: https://gamejolt.com/games/babydinoadventures/508121 Walk, run, and jump as a baby t-rex in this cute platformer Free demo available #IndieGame | #GameDev | #PixelArt