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

Just as Pecaminosa's musicians #improvise this rendition of #LittleSunflower 🌻, so do we improvise with this post you're reading. 😂

What's coming out of your own improvs? 🤔

#Pecaminosa | #IndieDev | #OST | #Jazz

🍒Did you like the game? A demo is available for free on Steam.

✌️ Thanks for playing IndieGameiacs!

⚙️ Free Demo: http://bit.ly/UniDuni

📺 Full Video: https://youtu.be/5qEbVXg7GaQ

#steam #uniduni #clops #screenshotsaturday

Quantum precognition is one of the most powerful cards. End game cards & equipment. Demo/alpha build boss is no match for this deck.

"Our work is never over" they said.

Just a Pico sprite

In the quest for accessibility, I'm adding Resurrection Shrines for players on the 'novice' end of the platforming spectrum.

In order to unlock the power of a Shrine, you must collect 3 'Souls' from your dead corpses! (the floating blue orbs)

Back in my art school days I used to ride the 710 COPSA line from Parque Del Plata to Montevideo almost everyday. This is the Marcopolo Viaggio G4 Mercedes Benz model from the late 80s, one of the older bus models that was running on the line.

Strange Umbrella

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

A house I've built a while ago. :)

It nicely separates the snowy biome from the grassy one.

It's built with painted Ebonstone.