pygame
Mathematical Programming with Python
https://people.sc.fsu.edu/~jburkardt/classes/...
python_2025/pygame/pygame.html
pygame:
a Python library which can be used to develop interactive games.
Lecture notes:
-
move_circle.py,
in which the user moves a red circle with the
'a','s', 'd' and 'w' keys.
-
lights_out.py,
a puzzle in which the user tries to extinguish all the lights
on the screen.
-
lights_out.zip,
all the items needed to define the Lights Out game.
-
chimp.py,
a game in which the user tries to punch a chimp moving
back and forth. Some sound effects are included.
-
chimp.pdf,
a description of the Chimp program.
-
chimp.zip,
all the items needed to define the Chimp game.
-
space_invaders.zip,
all the items needed to define the Space Invaders game.
a version of the arcade game, in which rows of aliens
gradually march down the screen towards the defending player.
The main program is stored in the Code subdirectory as Main.py.
Last revised on 16 March 2025.