Michael Johnson's profile

Minecraft Snake Game

Minecraft Snake

Description:
     - This game is just like the original snake game you played growing up as a child, but I added my own twist to it. I made this game because the game snake is very special to me because I got bored a lot in high school and played it a lot. In addition to this, I love Minecraft, so I thought what better way to combine two things I enjoy than to make a Minecraft version of Snake. This project uses the arrow keys in order to move the snake around on the screen and eat apples. As you eat an apple, the snake speeds up faster and faster and also progressively gets longer. If you, the snake, hit yourself, then you die and have the option to restart the game. I thoroughly enjoyed this project because it taught me perseverance and time management. At times, I did not want to finish this project, and I thought it could not get done, but I found a way to finish it and am very happy with how it turned out. 
The Process: 
     - At first, I thought I would be able to just use floats in order to calculate the snake and the movement of the snake. However, after a consultation with lab assistant Silas, I realized and was pointed in the right direction of using PVectors with account for both the x and y axis of movement at the same time. This required a bit more math involved when trying to add another square or segment to the back of the snake each time an apple was eaten. In Addition to this, having the apple move each time with the "random command" was another thing I thought was going to be fairly easy, which once again, I was wrong. I realized that as the snake got longer, the area for where the apple could be placed was going to need to shrink. I was able to accomplish this feat by using Gridsize, which is the current size of the Grid. This calculated the size of the snake and took it into account for continuous growth of the snake. The sound and animations were the easy part thanks to the wonderful help of my professor Chris Whitmire. He helped me with the code and animation to be placed on top of the apple. Overall, the process of creating this game was extremely time consuming, but was much needed and taught me a lot about the different ways to code to get around certain hard aspects of creating this game. 
Minecraft Snake Game
Published:

Minecraft Snake Game

Published: