Multistate pygame set up as package.

Multistate pygame set up as package.

Postby Mekire » Sat Jun 29, 2013 3:48 pm

This is just a demonstration of how I currently set up projects as packages.
It contains 5 states which can communicate any persistent data using startup and cleanup functions.
(the only persistent data that is passed here is the location of the sprite).
The states themselves are not particularly clean as I just wanted to show the package structure.

New Users, Read This
  • Use code tags when posting code.
  • Include any errors with your post (in code tags).
  • Describe your problem; not your chosen solution.
  • Make examples the minimum length to demonstrate your issue.
User avatar
Posts: 1711
Joined: Thu Feb 07, 2013 11:33 pm
Location: Tucson, Arizona

Return to Game Development

Who is online

Users browsing this forum: No registered users and 2 guests