pygame is
Simple DirectMedia Layer is
Site Swing

Borgwar - 0.8.2

Pierre Labatut (pedro)



=-= This is still a prototype =-=

  • contains its own map editor
  • contains a fight simulator, with IA resolution at 10 ms
  • contains its own sprite engine with nice performances
  • contains its own map editor
  • is able to save and load maps from the disk (windows only)
  • proposes 4 weapons, more are coming
  • proposes 3 goodies, more are coming
  • should be compatible with unix systems (let me know if there is any problem)


  • Unix compatibility fix
  • Resources loading progress bar implement
  • Potential visible set pre-calculation progress bar implement
  • Ray tracing optimization with tuples (definitely faster)
  • Primitive IA sample that carry on path finding in a unknown map


Home Page:


click to view original size


Borgwar - 0.8.2 - Sep 11, 2007
Borgwar - .81 - Sep 3, 2007
Borgwar - .8 - Aug 31, 2007 account Comments

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

September 24, 2007 6:11am - Pierre Labatut - nickname: (pedro)
Thanks, i will do that!
I'm currently working on a IA, and I'm correcting a lot of bugs.
For now my computer is dead, the motherboard is down. The cool news is I bought a new one.
In brief, i will not deliver a new version until october.
September 21, 2007 1:30am - DR0ID - nickname: (dr0id)
you should add a readme.txt with instructions so people do know what they can do and how (I have not found out how to add a second IAs on the map). And I wonder why you need pywin32 (get rid of it).
September 12, 2007 3:06am - Pierre Labatut - nickname: (pedro)
Hi, new update !
September 4, 2007 6:00pm - Peter Enzerink - nickname: (garglebutt)
Sorry I missed the last line. The tilde actually points just after the last bracket on the last line. Here is the complete output:
===== Start application =====
application.AgentManager start
application.ActivateAgent start
application.TimerEventObservable start
===== Load IA modules =====
IA module found 'iatemplate' []
IA module found 'team1' [<class team1.WalkerIA at 0x82cd41c>, <class team1.WalkerIA at 0x82cd41c>]
IA module found 'team2' []
===== Load all resources =====
WARNING: The prototype 'control_toolpalette' has not resources key.
WARNING: The prototype 'edition_toolpalette' has not resources key.
===== Load default map =====
Traceback (most recent call last):
File "src/", line 1104, in <module>
File "src/", line 690, in GetGame
File "src/", line 653, in LoadResources
File "src/", line 518, in LoadMap
File "<string>", line 1[0][0].controler.SetPrototype(self.model.prototypes['default'])
SyntaxError: invalid syntax

September 4, 2007 5:20am - Pierre Labatut - nickname: (pedro) - 3/5
I didn't find how to fix it with the provided stack trace. Any clue ? I'm going to test is with a ubuntu live... may be this week

Regarding eval, it is a temporary solution that helped me to write a saving / loading protocol in 5 minutes. Well, I agree to you, it is a security hole issue, but the security is not the goal of this game prototype.
September 3, 2007 11:08pm - Peter Enzerink - nickname: (garglebutt)
Progresses further than before on Ubuntu but now I get:

File "src/", line 518, in LoadMap
File "<string>", line 1[0][0].controler.SetPrototype(self.model.prototypes['default'])

Is it really necessary to use eval() to build a map? This seems to be a large potential security hole. It shouldn't be much work to read/write c.coord[0],c.coord[1], and parse appropriately.
September 2, 2007 5:03am - Pierre Labatut - nickname: (pedro)
Thanks a lot for all teases comments. I will enhance unix compatibility soon.
September 1, 2007 1:51am - Lamonte Harris - nickname: (lamonte)
Ok I downloaded wingui from here: for python 2.5 deleted the dist folder then ran the build release file again and boom it worked :). Looks good. You should make it re sizable or autofix for different resolutions. Pretty cool.
September 1, 2007 1:37am - Lamonte Harris - nickname: (lamonte)
I got this when trying to install:

Traceback (most recent call last):
File "", line 3, in <module>
File "commands.pyo", line 5, in <module>
ImportError: No module named win32gui
September 1, 2007 12:21am - Peter Enzerink - nickname: (garglebutt)
A quick look at borgwar.bat shows that game is run using:

$ python src/

More seriously though, the game used Windows specific modules so can't be played on Linux:

Traceback (most recent call last):
File "", line 3, in <module>
from commands import *
File "/media/backup/source/Python/borgwar-src/borgwar/src/", line 5, in <module>
import win32gui, win32con, os
ImportError: No module named win32gui

Removing win32gui and win32con from src/ fixed that error, then we get:

Traceback (most recent call last):
File "src/", line 1103, in <module>
File "src/", line 691, in GetGame
gameinstance = GameM()
File "src/", line 625, in __init__
File "/media/backup/source/Python/borgwar-src/borgwar/src/", line 96, in Load
File "/media/backup/source/Python/borgwar-src/borgwar/src/", line 75, in Build
IOError: [Errno 2] No such file or directory: '.\\res\\/prototypes.cfg'

Replacing ".\\res\\" with "./res/" on line 89 in src/ fixed that (that should also work on Windows).

Next problem is that although Windows is only case aware, Linux is case sensitive and a lot of the filenames in res/ are *.BMP rather than *.bmp, at which point I lost interest.
August 31, 2007 12:19pm - Shiroku - nickname: (shiroku)
I tried to run it on linux, but this is the output:

fra@casa:~/Desktop/borgwar-src/borgwar-src/borgwar$ python
===== Clean outputs directories =====
===== Search for data files =====
Traceback (most recent call last):
File "", line 46, in ?
File "", line 10, in getDataFromPrototypes
IOError: [Errno 2] No such file or directory: 'res\\prototypes.cfg'

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Nov 17, 2015

Nov 12, 2015

Nov 11, 2015

Nov 8, 2015

Oct 16, 2015

Oct 9, 2015

Sep 11, 2015

Sep 6, 2015

Aug 26, 2015

Aug 25, 2015

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