Snake Game in Python using Pygame
Like Jeffrey Hymas

Snake Game in Python using Pygame

Snake Game in Python using Pygame


Published: April 26, 2020 1 0 125
By: Jeffrey Hymas, Cal Poly Pomona
Category: Computer Science
Hashtags: #Coding #Programming #python3

Remember that old phone game Snake? Well here is a version written in Python using pygame. Pygame is used to draw the game board and create the graphics that allow the snake to move around. Two classes are used to make the snake and the food he chases. A cube class for the snake segments and the pieces of food, and a snake class that combines all the individual cubes that make up the body segments and allows the snake to move around the screen without the segments detaching from one another.


snake.txt 8.5 KB


Jeffrey Hymas