Skip to content

Latest commit

 

History

History

Examples of PyGame script templates.

###0__empty__.py

  • comments
  • constants
  • pygame init & quit
  • pygame screen
  • mainloop

###1__simple__.py

empty plus:

  • class Player (in comments)

###2__functions__.py

simple plus functions for mainloop:

  • handle_event
  • update
  • draw

###3__app_class__.py

Everything in class App with methods:

  • handle_event
  • update
  • draw
  • mainloop

###4__stage_class__.py

Class App with

  • pygame init & quit
  • pygame screen

Class Stage to create

  • StartScreen
  • EndScreen
  • Game

All Stage subclasses with own

  • handle_event
  • update
  • draw
  • mainloop

** To Be Continued ? **