topics that matter; ideas worth sharing

share a tip, submit a link, add something new

Gaming the System with Python

June 13, 2002, 12:00 AM —  ITworld — 

Traditionally, scripting languages help administrators manage systems
with relatively small scripts. Python is used in this capacity as well
as for larger applications such as installation programs. The latest
effort, though, uses a library and tools from the PyGame effort to take
Python into the realm of interactive gaming.

PyGame (http://www.pygame.org) offers a Python-based game development
library built on the Simple DirectMedia Layer (SDL). SDL
(http://www.libsdl.org), the premier Linux library for graphics-heavy
games, provides multimedia capabilities on a number of platforms,
including Linux. SDL is similar to DirectX, but it supports multiple
platforms. A number of commercial games, especially those ported by the
now-defunct Loki (http://www.lokigames.com) use SDL. Possible Worlds, a
game covered here previously, also uses SDL.

SDL is an impressive effort. By building on top of SDL, the PyGame
effort lets Python developers take advantage of the richness in
multimedia that game users take for granted to build quite a respectable
game entirely in Python. Python developers should check out the nice
tutorial at http://www.pygame.org/docs/tut/newbieguide.html for an
explanation of PyGame's offering. PyGame also provides a code repository
at http://www.pygame.org/pcr/repository.html, which is full of small
routines to help speed game development.

SDL and Python, both already multi-platform tools, make supporting
multiple platforms a lot easier. One of the most advanced games written
with the PyGame tools, Civil, an American Civil War strategy game,
demonstrates SDL and Python's cross-platform prowess by supporting
Linux, MacOS X, Windows, and BSD UNIX versions of the game. Civil
(http://civil.sourceforge.net) is a turn-based strategy game that
focuses on small battles from the Civil War. An extensive manual
explaining how to play the game can be found at
http://civil.sourceforge.net/playing.html.

Civil's main drawback is that, so far, you need to download the code
from CVS in order to play (see
http://civil.sourceforge.net/download.html for details). That should
change, however, as the game nears a 1.0 release from the current 0.7
version. More importantly, the PyGame tools are slowly tearing down the
barriers preventing Linux developers from making good games, and I
expect the future will see more quality Linux efforts like Civil.

» posted by ITworld staff

ITworld

I like it!
Post a comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
Resources
White Paper

Symantec Backup Exec 12 and Backup Exec System Recovery 8 deliver industry leading Windows data protection and system recovery. Download this whitepaper to find out the top reasons to upgrade and how to get continuous data protection and complete system recovery.

Webcast

Data and system loss — from a hard drive failure, malicious attack, natural disaster, or simple human error — can happen anytime. Don’t leave your business vulnerable. Make sure you have a secure recovery strategy in place. Symantec's latest backup and system recovery technology can efficiently restore critical applications, individual emails and documents and even restore your entire system in minutes in the event of a loss.

White Paper

Businesses face a growing challenge to ensure that the IT environment is properly protected. Backup Exec 12 integrates with other applications in the Symantec family of products, to complement your current data protection strategy, keep your data securely backed up and make it recoverable when you need it most.

Free stuff
Featured Sponsor

Get a broad understanding of important regulations and how you can make sure your site is in adherence.





Learn how VeriSign SGC-enabled SSL Certificates can help improve site security and customer confidence in the free white paper, "How to Offer the Strongest SSL Encryption." In this paper you will learn the differences between weak and strong encryption and what they mean for your site's performance.

Get VeriSign's free white paper: "The Latest Advancements in SSL Technology" and learn about the benefits of strong SSL encryption, Extended Validation (EV) SSL and security trust marks and what these SSL offerings can do for your site.

Now with Extended Validation (EV) SSL available from VeriSign, you can show your customers that they can trust your site. Learn about EV SSL benefits in this free VeriSign white paper.

More Resources