Inspiration

When I was younger I really enjoyed the classic game snake. The only thing that I didn't like about it was that there was only one feature, being eat apples to gain length. Because of this I have decided to code my own snake game that has multiple consumables that do various different things.

What it does

My project is the game snake but with more consumable items. First, there are pumpkins which you consume to gain points and length. Then, I added bombs which subtract score when you eat them.

How we built it

I used the eclipse ide to code my project. To build it I first had to come up with the idea. I then figured out how to get the snake to be able to move around on the screen and accept inputs from the arrow keys. After that I created bombs and pumpkins which subtract and add score respectively. The final thing I did was to end the game if you either hit the side, hit yourself, or get negative points.

Challenges we ran into

A challenge that I ran into was getting the snake to detect its collision with the pumpkins. I solved this by adding a certain set unit size on the screen so that there was a lot less possible x and y values for the snake and pumpkin. By doing this I was able to make an if statement that checks if the snake and pumpkin x and y values were exactly the same.

Accomplishments that we're proud of

I am proud of getting the snake to move, because I didn't know how to do that before this hackathon but I was able to figure it out and make it work.

What we learned

Although coding is difficult sometimes and you can encounter a lot of errors, if you keep trying you will be able to create anything you could ever want.

What's next for Spooky Snake

If I had more time to work on this project I would add more consumable items that did different things. I would also add a way for the game to be won.

Built With

Share this project:

Updates