Game flow and pygame rect
-
Creating frame for the game
-
Replacing the player sprite (rectangular shape) with an image
-
- defining some
RGB colorsto use in the game (we can add more colors here)
- defining some
-
- defining screen width and height and also the
FPS
- defining screen width and height and also the
-
- initializing the
pygame module,pygame mixer(used for sounds),the screen(width and height imported from config module),screen labeland theclock(used to control the time of the game flow) See: Game flow
- initializing the
-
- contains
player(sprite) class and for now it is a rectangular shape (pygame.Surfaces())
- contains
-
- the main loop of the game and contains the all the steps of the
game flowSee: Game flow
- the main loop of the game and contains the all the steps of the