Share your repls and programming experiences

← Back to all posts
Weekly Post #4 - Snake Game
HenryZelonka1

Updated version: https://repl.it/talk/share/Updated-Snake-Game/40465

It's been a month since my first weekly post and I feel like I've progressed a lot as a programmer. Perhaps it was inevitable that I would make a snake game but I think the timing worked out really well.

######Instructions
1.Use the arrow keys to move.
2.Eat apples.
3.Don't crash into your tail or the wall.
4.Upvote(optional)
5.Post high score in comments(optional)

This is my first project using processing, but since I am decent with Java and already knew some processing syntax from processing.js, I will probably make another project in the foreseeable future.

Enjoy!

P.S. Thanks to @theangryepicbanana for providing the template which allows processing to run in an html canvas.

Voters
jaronvesser
codingduck
MarblesAndMore
zplusfour
Coder100
egyptandluxoran
AgastyaSandhuja
Cookiezz
DynamicSquid
HenryZelonka1
Comments
hotnewtop
[deleted]

52 :)

AgastyaSandhuja

69 and I stopped there on purpose. I might or might not have hacked. You will never know.
Nice game though!

HenryZelonka1
DynamicSquid

@AgastyaSandhuja If only I knew how to make a snake game... I could create a path finding algorithm (and that I know how to do) and in theory it would work...?

HenryZelonka1

@DynamicSquid
It's actually simpler than it looks. You just need to create an array of body segments and move each one to the position of the one before it, over and over. This will make the snake "slither".

DynamicSquid

@HenryZelonka1 oookay, but how'd you make it grow?

HenryZelonka1

@DynamicSquid
I added another segment to the array once it detected that the snake had eaten the apple. P.S. I made a better version, I will be posting that soon.

Cookiezz

I'm super bad at snake,so my high score is 6... 😐 But this is cool! I love how the snake has eyes.

HenryZelonka1

@Cookiezz
Thanks.

DynamicSquid

42 :(

HenryZelonka1

@DynamicSquid
Nice. Thanks for upvoting.

jaronvesser

hey some thing is wrong with the game its not loading when I push the play button

HenryZelonka1

@jaronvesser
It works now.

jaronvesser

I added a bit to the archer background but that's all I can do I used copy and paste then changed the varyables. check it out when you have the time.

HenryZelonka1
HenryZelonka1

Leaderboard:
@AgastyaSandhuja 69 (may have hacked)
@HenryZelonka1 61
@Twitchmmanikan 52
@blackjkl 51
@codingduck 49
@MarblesAndMore 47
@Coder100 44
@DynamicSquid 42
@Cookiezz 6
Comment to get you hi-score in here.

codingduck

4

codingduck

49 i mean

HenryZelonka1

Leaderboard:
@AgastyaSandhuja 69 (may have hacked)
@HenryZelonka1 61
@Twitchmmanikan 52
@blackjkl 51
@Coder100 44
@DynamicSquid 42
@Cookiezz 6
Comment to get you hi-score in here.

MarblesAndMore

47 is my best so far

MarblesAndMore

I got 55 but that was on the updated one so it doesn't count

[deleted]

I got 43

[deleted]

bruh, me got one more then @DynamicSquid

[deleted]

New Hi score, 48

[deleted]

@blackjkl I mean 51

Aqtion

63!

HenryZelonka1
HenryZelonka1

Leaderboard:
[email protected] 69 (may have hacked)
[email protected] 61
[email protected] 52
[email protected] 44
[email protected] 42
[email protected] 6
Comment to get you hi-score in here.

HenryZelonka1

Leaderboard:
@AgastyaSandhuja 69 (may have hacked)
@HenryZelonka1 61
@Twitchmmanikan 52
@Coder100 44
@DynamicSquid 42
@Cookiezz 6
Comment to get you hi-score in here.

Coder100

Nice job! Please add a grid :) My score is 44

HenryZelonka1
Coder100
HenryZelonka1

Leaderboard:
@AgastyaSandhuja 69 (may have hacked)
@HenryZelonka1 61
@Twitchmmanikan 52
@DynamicSquid 42
@Cookiezz 6
Comment to get you hi-score in here.

HenryZelonka1

Leaderboard:
@AgastyaSandhuja 69 (may have hacked)
@Twitchmmanikan 52
@HenryZelonka1 47
@DynamicSquid 42
@Cookiezz 6
Comment to get you hi-score in here.

HenryZelonka1

Leaderboard:
@AgastyaSandhuja 69 (may have hacked)
@HenryZelonka1 47
@DynamicSquid 42
@Cookiezz 6

HenryZelonka1

Leaderboard:
@HenryZelonka1 47
@DynamicSquid 42
@Cookiezz 6
Comment your high score to get it on the leaderboard.

HenryZelonka1

47