Tuesday, December 5, 2023

Making Games with Python and Pygame : installing python and pygame, downloading graphics and sound files, pygame basics, gui and cli, game loops and game states, pixel coordinates, a reminder about functions, methods, constructor functions and functions in modules, memory puzzle, credits and imports, checking which box the mouse cursor is over, handling the first clicked box, handling if the player won, drawing the game state to the screen, creating the board data structure, slide puzzle, source code to slide puzzle, setting up the buttons, the main game loop, checking for a specific event and posting events to pygame’s event queue, creating the board data structure, simulate, checking for mouse clicks, figuring out if the player pressed the right buttons, wormy, the grid, setup code, drawing the screen, drawing the background, grass, squirrels and health meter.