pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Packaged Windows Build Creator

Packaged Windows Build Creator - 002

patrick mullen (saluk)

Tags:

Description

This is some base code I use for my projects, since I started developing it for PyWright.

It doesn't do a whole lot (it's base code, what do you expect?) but it does enough very nice things that can take a lot of time to add to a new project - or they are just forgotten and left out altogether. Or the timestep is implemented in a bad way, etc.

There are a few main benefits to using this code, at least for me - I'm not sure how useful other people will find it.

But the main benefits are:
  • executable - A prebuilt windows and macintosh exe with all the dependencies I will ever need. I can update code without rebuilding it. I have used py2exe once this year, and that was to change the name from PyWright to main. Using py2exe is a pain in the butt. I want to touch it as infrequently as possible
  • timestepping - the engine in PWBC has a decent timestep. It runs at a locked 60 seconds, so update functions generally only have to think in terms of frames rather than the time changed on a frame (although you have access to that if you need it). You can also alter the logic framerate so that it is different from the display framerate.
  • display - the display runs by default at 320x240, and scales to 640x480. These values can be modified, and scaling of the window to change the scaled resolution is built in as well. Alt-enter toggles fullscreen.
  • worlds - I also included a barebones world/sprites system. Worlds display all the sprites they contain, and you can subclass different worlds for different modes, such as one world for a menu, and another for the actual gameplay

Changes

Here's a new update of pwbc! Now with better process and more platforms.
  • Mac exe - Now comes with a mac exe. Write regular python code, don't run py2exe or py2app, get a mac, windows, and source release for free!
  • build.py - copies files around to quickly and easily generate a zip file sufficient to release on all 3 platforms (mac, windows, and source only)
  • Came up with a new definition of the acronym: Packaged Windows Build Creator. Still don't like it. Help me think of a better name?

Links

Home Page: http://pygame.org/project-pwbc+-+saluk%27s+base+code-1992-3513.html
Source: http://dl.dropbox.com/u/20465064/pwbc_002.zip
Windows: http://dl.dropbox.com/u/20465064/pwbc_002.zip
Mac: http://dl.dropbox.com/u/20465064/pwbc_002.zip

Screenshot


click to view original size

Releases

Packaged Windows Build Creator - 002 - Feb 22, 2012
Packaged Windows Build Creator - 1 - Aug 17, 2011

Pygame.org account Comments

If you wish to leave a comment with your pygame.org account, please sign in first.

July 3, 2012 1:10am - patrick mullen - nickname: (saluk)
Thanks for the comment, glad you liked it borix134! Let me know if you run into any issues or have Any ideas for improvements.
June 29, 2012 4:03am - nick panagakis - nickname: (borix134) - 5/5
awesome
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Apr 21, 2014


Apr 19, 2014

Apr 16, 2014

Apr 13, 2014

Apr 9, 2014

Mar 18, 2014


Mar 15, 2014


Mar 14, 2014

Mar 13, 2014

... more!
 
for pygame related questions, comments, and suggestions, please see help (lists, irc)