Simple Snake Implementation


McPepic 2022-09-01 15:08

Simple game of snake.

I tried to make the code as simple as possible.

If you want a challenge, fell free to try and simplify the code further.
You can also expand the game or put a twist on it.

I hope you enjoy!

Snake.nx | Open in app
2022-09-01 15:08

was8bit 2022-09-01 15:17

Yea! A snake game at my speed :D i can actually play this game :)

I am intrigued with the challenge... hopefully others will take the challenge and try a remix ;)

was8bit 2022-09-01 15:19

(I already have an idea for a neat twist, but it will have to wait until i get a spot of time)

McPepic 2022-09-01 15:26

I was inspired to make this by a video that came out recently where someone coded snake on an Apple ][. I also actually had an idea for a challenge where it would place portals around the level in intervals that would teleport the snake around the map. I didn't want to include it, though, because I wanted to leave it open for modification.

was8bit 2022-09-02 05:49

I loved apple2e :)

SP4CEBAR 2022-09-02 18:41

Challenge accepted :)

SP4CEBAR 2022-09-02 20:37

I spent way too much time on this

SP4CEBAR 2022-09-02 20:38 (Edited)

V1 uses a shortcut that reduces reliability (it doesn't use any arrays or working ram)

Simple Snake.nx | Open in app
2022-09-02 20:38

SP4CEBAR 2022-09-02 20:39 (Edited)

V2 doesn't use arrays or working ram either, but here the reliability doesn't suffer

Simple Snake 2.nx | Open in app
2022-09-02 20:39

McPepic 2022-09-03 00:40

Nice! I seem to have lost my snake in the void though... Also goes much faster.

was8bit 2022-09-03 05:35 (Edited)

Here is my remix... i kept it simple as i have a backlog of my own stuff to finish ;)

SP4CEBAR 2022-09-03 07:35 (Edited)

The void... I forgot to fix that
It can be slowed down by replacing the "timer mod 10" with "timer mod 20" (like in your program)

Log in to reply.