
Python Platform 10/24/25
Today I resumed my Platformer game which I had started last friday

The event checks whether the player exists out or not and if the player clicks the x button, the if event will stop the event loop, stopping the game

The function get_background returns the tiles(image) to the background window


the for tile in background loops over every tile there is
window.blit(bg_image) draws the background image in a certain spot supported by the (tile) This will fill the entire screen with the image
Pygame.display.update updates the screen every single frame making sure the old drawing stuck on the screen

The double sprite helps to put perfect pixel movement on the screen and it also helps to tell if the sprites are interacting with each other.
self.rect is like an tuple that stores indivual values makes it easier to move the player

Leave a Reply