[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] GSoC project proposal: Pygame on rails
- To: pygame-users@xxxxxxxx
- Subject: [pygame] GSoC project proposal: Pygame on rails
- From: Evan Kroske <e.kroske@xxxxxxxxx>
- Date: Sat, 6 Mar 2010 17:54:05 -0500
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sat, 06 Mar 2010 17:54:21 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=70OCt1FxEdxXMQ0XoU1aLOSdOsm0u4w6uDlv7WHgC4U=; b=t/OY0P66NEVxINyPHyHGh1DOaIBQYg86FW8IXyWRWUsp8qkkGQCFJt6FOGmWxZ8RBo 0wv6e9X4x9QSKw1B09007bR81w+4XCGeYQFzF4sHGhGwU0iGZdRRCkakfnO1ZIE98Z06 MF2u61DHeOQOEUsxSYK0ehUpx4Nrwh7NvCo+o=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Aii84L/Ve3jUmcgsz35Eko3k7Z84TBbwBtv0+mWVSFl1w86mvw+4G/TR/4y/WA28Vi Kd4/FwBV9/DAcI3lXry+JagvA94rIEj6h+nflzrI5XJ0eEJDInoj2WWNvIuqyEAjCrAy xt1VHQ4CpvV25XNpwYdZjecE2khYeoQ6qKVR0=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
I'd like to work on a Pygame-related project for GSoC, so I've been
thinking about possible projects I'd like to do. My favorite idea is
developing a micro-framework on top of Pygame to cut the volume of
code required to create a game within a well-defined genre. It would
revolve around assigning actions to high-level events. For example,
instead of creating a block like this within the main game loop:
if not player.reloading and sdlconst.K_SPACE in keystate and
len(shots) < constants.MAX_SHOTS:
shots.append(factory.createProjectile(player))
the game developer would write something like this:
player.setProjectile(Bullet())
player.setFireTrigger(sdlconst.K_SPACE)
Here are a few more possible examples:
# Set tile map for stage
level.setTileMap(tileMap)
# Set BG music for stage
level.setBGMusic("battletheme.ogg")
# Assign goal for stage
level.setGoal(flagpole)
The framework would have specialized modules for each genre; the
platformer module would have a simple physics engine and a tiled
background engine, but the space shooter module would have a way to
easily control the behavior of shots and enemy ships.The framework
would dramatically simplify the process of putting graphics on screen
and playing sounds, allowing developers to focus on other aspects of
game design, such as automated level generation, AI, and media-based
mashup games.
I'm really excited about the possibility, but I want to know what you
think about it. Do game developers need an easier way to create games?
Has another project already done this?
--
Evan Kroske
http://welcome2obscurity.blogspot.com/
The personal blog of Evan Kroske,
novice software developer.