When writing games with pyglet, I often find myself reusing the same design patterns for certain parts of every game. To avoid writing the same code over and over, I abstracted all the game-agnostic code out into a set of libraries.
http://www.github.com/irskep/pygletshell This package is for anyone who wants to write a game of any size in Pyglet with as little hassle (and spaghetti code) as possible. It is meant to provide you with the following: - Easy configuration - Hassle-free resource loading and settings loading/saving - Resolution independence to make up for Pyglet's lack of support for changing resolutions - A scaffold for rapid game development with as little setup time as possible Basically, all you should have to do is set the name of your game and folders to load resources from in run_game.py, then extend gameplayer.py and add classes as necessary. You'll also want to customize the title and pause screens. Loaded resources are accessible via the resourcevault module (util.resourcevault). If you want to add more screens to the menus or the game, just add more states. You can check it out by using the download link on the web page and running run_game.py. Look at run_game.py, titlescreen.py, gameplayer.py, and pausescreen.py for example usage. I want to make this package as easy to use as possible. I realize that most people will probably just write their games from the ground up anyway, but I will be working in a team of 4 in the near future, and I want to make sure my design is understandable and well-documented. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
