11/14/25 2D Pygame

Today I decided to work futher on that snake dash I made and this project is similar to the box dash I made earlier.

I first started with importing pygame

I made a function called class that contains all the games window’s description like height and width

The codes display_surface are responsible for the length of the pop up window on the screen

The display.set_caption puts the caption on the top left of the pop of window of your choice

self.clock is responsible for how long frames per second you want it on the screen

The pygame.Quit allows for the player to quit out of the game

The settings contains the extra changes we want to make like the width, height of the game window.

This is what it looks like right now I’m not finished but I’m still working on it

Leave a Reply

Your email address will not be published. Required fields are marked *