pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
stdtools

stdtools - 0.6

Hugo Arts (hugo)

Tags:

Description

This package is a collection of tools I use in my other projects. The following is included:

  • ModelView class handling the game
  • EventManager
  • primitive GUI elements (incomplete)
  • 2D vector class supporting vector arithmetic
  • basic collision detection using rects
  • resource handling classes (images, sound)
  • basically, one of the dozens of utility libraries for pygame out there. Everyone writes their own, right? the package is not really organized. The init file is a mess, and the files have long and wordy names. This will change as soon as I have the time.

    Also see my blog for a tiny sample of the event manager, and the PyngPong project for a look at how all this stuff should work.

    Changes

    This new version cleans up the module somewhat, and also adds a bit more functionality to the GUI package. NOT backwards compatible with 0.5 in any way.

  • new Menu and GUIStyle classes simplify working with a GUI
  • cleanup of package names
  • a little test application for the GUI (not a test suite)
  • It appears that this package is not working with pygame 1.8. I haven't downloaded it, but I'll look into it as soon as I can.

    Links

    Home Page: http://www.pygame.org/
    Source: http://www.wgtower.nl/files/stdtools-v0.6.tar.bz2

    Releases

    stdtools - 0.6 - Apr 3, 2008
    stdtools - 0.5 - Mar 25, 2008

    Pygame.org account Comments

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

    April 11, 2008 6:43pm - Hugo Arts - nickname: (hugo)
    as a followup, I have also submitted a bug report, and I believe the issue can be easily fixed by throwing a more understandable exception instead of segfaulting.
    April 11, 2008 7:14am - Hugo Arts - nickname: (hugo)
    Alright, I've figured out that the error is actually a segmentation fault in the python interpreter. This was caused by trying to blit the screen onto itself. This apparently works under linux, but not windows. I'll be posting a fixed version here as soon as I can. If you can't wait:

    open stdtools/__init__.py, and find the Screen class. Add this method:
    <code>
    def render(self, surface):
    pass
    </code>
    April 10, 2008 11:08am - pymike - nickname: (pymike)
    I'm running windows, and I get just a runtime error. I have pygame 1.8.0 and python 2.5.1. Weird bug.
    April 5, 2008 10:35pm - Hugo Arts - nickname: (hugo)
    well I installed the 1.8.0 release, and the package still works perfectly fine with me. Is there no stack trace or anything whatsoever? Just a run-time error? Are you running it on linux or windows?

    I really want to fix this, but it's hard to fix something that doesn't break on my pc.
    April 5, 2008 10:00pm - Hugo Arts - nickname: (hugo)
    yes, I expected the error to be somewhere in this package. I haven't updated to 1.8 yet, but I'll look into this again as soon as I have. Since, like I said, everything is working fine on my end, I really think the problem is with pygame 1.8.

    I'll put a 'Not compatible with 1.8" note somewhere in this.
    April 4, 2008 12:25pm - pymike - nickname: (pymike)
    I get the runtime error again when I run the gui test :(
    spotlight

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

    Jul 22, 2014

    Jul 21, 2014

    Jul 20, 2014

    Jul 19, 2014

    Jul 15, 2014

    Jul 10, 2014

    Jul 9, 2014

    Jun 27, 2014



    Jun 24, 2014

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