Using Python and PGE

Once pge has been installed you can import the python module pge and utilise it in your code. Your code can either run interactively with the pygame libraries or it can simulate the 2D world and generate a movie of the modelled behaviour.

A good starting point might be to copy and paste the example breakout code into a file and then from the command line you can type:


which should run the breakout game interactively using pygame.