Here, have a snake game | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Here, have a snake game

Million Snake games in the world. now, thanks to me needing to learn Java, there is 1 more. Have it http://dropcanvas.com/ejjrr

14th Feb 2017, 6:14 PM
LordHill
LordHill - avatar
6 Answers
+ 18
Good game. It would be great if you add some settings in the next version because the snake is too fast :)
14th Feb 2017, 6:32 PM
Igor Makarsky
Igor Makarsky - avatar
+ 1
Nice! Need to make the play area or screen resizable. I can't fit the entire thing on my monitor. Makes it a bit difficult to play. Did you get your other issue figured out?
14th Feb 2017, 8:48 PM
ChaoticDawg
ChaoticDawg - avatar
+ 1
I did. it was less a problem with the code and more a problem of where I put the bit of code.. rookie mistake. spose plenty more of those in my future lol.. I played with the screen size ability back and forth and ultimately decided to lock it.. out of curiosity what is your screen resolution? I will put it on my laptop and make sure it fits more screen sizes. the height is under 800, I was guessing that would be safe for most displays
14th Feb 2017, 8:53 PM
LordHill
LordHill - avatar
+ 1
I'm using a couple of old flat panel tv's at the moment. Until I get some new monitors. They're 720p 1360x768 I think. I'm on a mac so there is also the menu bar at the top of the screen that occupies a few pixels of real estate.
14th Feb 2017, 9:05 PM
ChaoticDawg
ChaoticDawg - avatar
0
I considered settings for speed and colors.. still some things I want to add and some I want to tweak.. - add options for color and speed - protect highscore so it can't be changed in the save.txt file - possibly levels with varying difficulty - move apples that spawn under the snake body - maybe change the apple to a mouse that tries to get away (tossing the idea around my head, who knows) - Computer control the snake when CPU is entered as player name (only ai I have ever done was a pong paddle, but I think I can make a snake try to get an apple while avoiding itself and walls) - Custom title bar icon and program icon A few things I want to clean up before I call it done and move on to my next project. Years ago I made a in Gamemaker. I feel I have learned enough doing Snake to bring my game over to the Java world. Thanks for the input! Any other ideas, bring them on. Learning is what I enjoy and the only thing that hinders my learning is lack of ideas.
14th Feb 2017, 6:35 PM
LordHill
LordHill - avatar
0
Oh yea, definitely too big for that. I believe overall dimension is around 640x790 .. My plan was keep the height under 800, I didn't take tv's into account.. I will have to come up with a solution.
14th Feb 2017, 9:07 PM
LordHill
LordHill - avatar