Snake!
- 5 Devlogs
- 5 Total hours
A recreation of the traditional Snake in Java! I made this to practice my Java skills and get ready for making a bigger game over the coming months.
A recreation of the traditional Snake in Java! I made this to practice my Java skills and get ready for making a bigger game over the coming months.
I just fixed two bugs/issues:
How I did it: I made a boolean called hasMoved, set it to false, and made it check for if hasMoved was false. It also sets hasMoved to true after you change direction and sets it back to false at the end of the frame.
It’s been a hot minute since I posted a devlog, but I think I’ve more or less finished the game. Here’s what I’ve added:
yeah that’s pretty much it I think.
Next steps:
And last but not least, I’m gonna start preparing to ship!
Ok so I went and fixed all the bugs, there were a LOT of bugs. here’s a couple:
There are probably some more I haven’t explored yet, but for now I’m gonna work on the main menu.
This time I completed pretty much all the basic gameplay mechanics and the game should technically work once I fix up any bugs. However, there are still bugs: quite a few of them, actually, since I kinda just brute forced my way through this stage of development with code that I thought should work.
Anyway, once I get any bugs that stop me from running the game sorted out, I’ll refine the bugs that are impacting gameplay (there are def gonna be a couple of bugs there too). Then I’ll probably get started on designing a main menu.
I started learning Java at the beginning of June, and to test my skills I’ making a guided project in Java. I decided to recreate Snake, using the video attached in the README file to help guide me. I’ll try to use it as minimally as possible, but if I get stuck I’ll watch the video to learn where to go next.
So far I’ve just set up files and classes/functions as mentioned in the video, and I also set up a couple of variables and some code for a few functions on my own. Next time I’ll work on gameplay aspects, then I’ll move on to coding a death screen completely on my own.