- Add of a high score and a virtual keyboard to type your name. Thanks to @afburgess
0.2 Change log:
Option menu to change
- The speed of the snake, from 5 to 100 in % of the maximum speed.
- The dash in % of movements which increase speed.
- The grow in % of movements which increase size.
- The control (2 directions, 4 directions or only one direction for the ones who like challenge) ^^
The apples are less likely to appears close to the walls
The snake is now green, which is more realistic. ;)
The snake start shorter and doesn't grow as much as before when an apple is eaten.
0.1 Just a basic snake for my first game to begin softly.
The interesting challenge were to not save the entire snake coordinate but only the head and tail location + the path taken by the head (table of direction+pixel lenght).
Once we have this, use a blue brush which paint the snake head moving and a black one to erase the snake at the tail location.
To inclrease the snake size i've just set a timer for the tail to move, it is called at the game start and when an apple is eaten.
Now I'm planning to add a hall of fame and will try to save it in the cartridge rom if possible.
Edit: Use <- and -> to change direction.
I like the controls, and the game is fast, which is refreshing for a snake game. I ended up always turning left, which is fun in its own way, even as I would soon lock myself in a tragic spiralling demise :-) tried at 60fps, it's hair-pulling but still very fun.
- also have a one-button option (only left or right)
- start with a shorter snake and also make it grow a little slower
- make it run @60fps, start slower and speed the snake up every 5 dots or so
- spawn dots a little farther from the walls when at high speeds
- always keep a fast way to replay, there's a lot of death going on
- 2 players ? that would have to be much slower but p0 turning left & p1 turning right, could be fun ? eating a dot could allow you to munch on the other snake ?
- have a score ? took me a while to notice ^^
that's a real game, btw. my wife heard me swearing, she knew i wasn't working ^^
So many interesting suggestion !
Ok I'm sure I could add all of this in the game.
So for the next steps :
1 Fast replay
2 Add an option menu to
change the controls (one arrow, two arrows, 4 arrows)
change the initial speed
change the acceleration
change the size of the snake
4 Two player mode first iteration
1 minute timer
If a snake die it respawn at random location
The winner is the biggest snake
5 Two player mode second iteration
Sometime an apple appears, if eaten the snake could chomp the other
6 Score + Hall of fame
Hey there - nice snake game!
I have made a keyboard for inputting high scores etc into games, and I want to make a demo for how to use it. Would it be ok with you if I use your game as an example of how to implement it? Obviously would give lots of credit! :)
Hi Mimick. Looks pretty good. There was a version of this similar for the Apple computer years ago. It was remade for cellphones recently.
One thing you might want to have is a line that starts large outside the playing field and gets smaller and smaller the longer it takes for the player to get the "Apple."
If he takes too long, 2 more apples appear, the 'timer' resets, and now he has to get all 3 before it counts as valid.
When enough apples are eaten, a door appears at the top, and the snake can go on to the next level.
Hello @afburgess :)
It would be a pleasure to let you use this cartridge to input high score, thanks to have chosen it !
Here is below a version in 128128 if it could help (the original is in 6464).
Hello @dw817, yes it would be a nice idea to do something like this, actually it shouldn't be so difficult to implement it.
I'll let @afburgess implement his evolution and will add this idea once it's done.
I've had a go at putting a high score on your game, check it out below:
It was super easy - I haven't had to touch any of your code at all really! All I added was score +=1 for when you get an apple, and then called the picoboard if score > highscore.
Thank you for letting me try this - it made me realise that I need to add quite a few bits and bobs to picoboard, such as a way of saving the string into the persistent cart data, along with needing to make picoboards unique variables more 'unique'! I'm going to go and modify my code to make it easier for everyone to implement a high score into their games, and then make some instructions.
Many thanks again!
This game would be a lot more interesting if it could read/write an Online high score so you have something to compete against and not just your personal best. I wonder if this will be possible for future PICO.
Since you're saving data, you could save all the preferences in configuration so they do not have to be addressed each run.
[Please log in to post a comment]