pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
Fallen Spire

Fallen Spire - 0.01

Peter Rogers (petros)

Tags:

Description

This is a game I've been working on for a little while now. It's approaching a "demoable" state so I thought I'd post it online and document my progress. You can checkout the code and artwork in SVN (hosted at Google Code) and follow my progress on the development blog (http://fallenspire.wordpress.com/).

Changes

Not a whole lot is finished in this release, just some basic gameplay functionality and graphics.

Links

Home Page: http://code.google.com/p/fallenspire/
Source: http://fallenspire.googlecode.com/files/fallenspire-0.01.zip

Screenshot


click to view original size

Releases

Fallen Spire - 0.02 - Feb 16, 2009
Fallen Spire - 0.01 - Feb 8, 2009

Pygame.org account Comments

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

November 28, 2009 3:30pm - Armando Ortiz - nickname: (aos2771) - 5/5
I don't know anything about pygame, I am comming from Windows Vista, and have some very basic experience with Visual Basic and Visual C++ but then I thought it was too complicated. Also New to Linux, The only way I could adjust my Panasonic Viera HDTV was with Linux Mint. Anyways, I really liked 3D Game Studio v7 I bought the license to it but thought I needed some tutoring on Visual C++ first. I am mainly looking at linux 3D Game programming and found PyGame Python, and it is really neat. It is way different than Visual Basic though. I tried your Fallen Spire, it is awesome, and i was able to get him to jump with his gravity value changed. Are you going to finish this game? I really like it, you must be a pro because the way your character released lightening, it makes Castelvania look cheap? I hope that you do finish it with your start it could have some nice effects with the monsters and mission plot to it as well. How did you construct the levels? Are you going to create a tutorial for your program? I wish you luck in your great efforts,

October 29, 2009 11:51am - Thomas Dorosky - nickname: (kingpolock)
Okay, All of this is going to be new to me. I am entering a competition for Computer Game and Simulation Programming. I have until at least March-April to completely create a game of sorts. The screen shot from this game caught my interest because that is how I want my game to look but instead of like in a dungeon it will be in school hallways (itinerary for the competition not personal choice). So however you made this it has caught my interest and anyone reading this if you can help out in any way the by all means please do. Contect: Tgamerboy92@aol.com. -Thanks Also how do I go about playing this game?
February 17, 2009 10:58pm - Rene Dudfield - nickname: (illume)
wow, looks cool. I got up to the bridge, and couldn't jump it.

ps. your README needs updating for instructions on how to run, and how to play. Be nice if it had a main.py in the root :)

Really impressed so far... keep up the good work!
February 12, 2009 8:56pm - Peter Rogers - nickname: (petros)
Okay, so I finally figured it out (it was connected to the framerate). I'll post an updated version (with revised graphics!) soon.
February 12, 2009 8:17pm - Peter Rogers - nickname: (petros)
Hmmm, so I've tried and tried but can't reproduce these errors at all. I wonder if either of you could let me know:
1. How frequently this crash occurs (within seconds, minutes?)
2. Does it occur in particular locations, or while doing certain actions (climbing, dismounting ladders might be the problem)
3. Assuming you run the game from the command prompt, press '1' while in the game and let me know what gets printed to the console. (should be two numbers - zero, and the framerate)
If you could get me that info it would really help me track down these bugs. Thanks!
February 12, 2009 4:20pm - Francesco Mastellone - nickname: (effeemme)
The snippet didn't make the game work, making the function immediately return the original image fixed that, but now it crashes after trying to go upstairs and in other locations:

Traceback (most recent call last):
File "main.py", line 326, in <module>
level.update(dt)
File "/home/effeemme/Desktop/fallenspire-0.01/game/scene.py", line 433, in update
this.midground.update(dt)
File "/home/effeemme/Desktop/fallenspire-0.01/game/scene.py", line 378, in update
this.objects.update(dt)
File "/usr/lib/python2.5/site-packages/pygame/sprite.py", line 399, in update
for s in self.sprites(): s.update(*args)
File "/home/effeemme/Desktop/fallenspire-0.01/game/scene.py", line 94, in update
this.update_pos(dt)
File "/home/effeemme/Desktop/fallenspire-0.01/game/character.py", line 142, in update_pos
assert(newpos != None)
AssertionError

Numpy version is 1.1.1, and I forgot to add: I'm on Linux.
February 11, 2009 7:28pm - patrick mullen - nickname: (saluk)
Looks great so far, if I move to certain spots I get a crash with this error:

Traceback (most recent call last):
File "main.py", line 326, in <module>
level.update(dt)
File "C:\Users\saluk\Downloads\fallenspire-0.01\fallenspire-0.01\game\scene.py", line 433, in update
this.midground.update(dt)
File "C:\Users\saluk\Downloads\fallenspire-0.01\fallenspire-0.01\game\scene.py", line 378, in update
this.objects.update(dt)
File "c:\python25\lib\site-packages\pygame\sprite.py", line 399, in update
for s in self.sprites(): s.update(*args)
File "C:\Users\saluk\Downloads\fallenspire-0.01\fallenspire-0.01\game\scene.py", line 94, in update
this.update_pos(dt)
File "C:\Users\saluk\Downloads\fallenspire-0.01\fallenspire-0.01\game\character.py", line 142, in update_pos
assert(newpos != None)
AssertionError
February 9, 2009 6:15pm - Peter Rogers - nickname: (petros)
It might be an incompatibility with some version of Numeric. I've decided to steer the source towards numpy, as that seems to be the way of the future, and finally let go of Numeric.
February 8, 2009 5:08pm - RB[0] - nickname: (roebros)
Are you both using the latest versions of Numpy?
Actually, pygame usage *should* be identical to both, since it can use both, but that is where you are having the problems...

Just thought I would throw that out there for you...
February 8, 2009 4:14pm - Peter Rogers - nickname: (petros)
Strange error. We're both using the exact version of PyGame and Python. I've also tested it in Linux and Windows (separate boxes) and things work fine. Could you try replacing the "darken_surf" function in "game/utils.py" with the code found at:

http://code.google.com/p/fallenspire/wiki/DarkenSurf

And let me know what the output is? There's also a stub function there to bypass this problem if you just want to get the code working. Thanks, P.
February 8, 2009 3:03pm - Francesco Mastellone - nickname: (effeemme)
Screenshot looks nice, but when I run main.py I get this:

Traceback (most recent call last):
File "main.py", line 232, in <module>
level = scene.Level(ldr.load_tiles("tiles.xml"))
File "/home/effeemme/Desktop/fallenspire-0.01/game/scene.py", line 407, in __init__
this.darkTileSet = tileSet.create_dark_set(100)
File "/home/effeemme/Desktop/fallenspire-0.01/game/scene.py", line 194, in create_dark_set
tileSet.tiles.append(tile.create_dark_tile(amount))
File "/home/effeemme/Desktop/fallenspire-0.01/game/scene.py", line 168, in create_dark_tile
tile.surf = utils.darken_surf(this.surf, amount)
File "/home/effeemme/Desktop/fallenspire-0.01/game/utils.py", line 43, in darken_surf
pygame.surfarray.pixels_alpha(newsurf)[:] = alpha
ValueError: matrices are not aligned for copy

I have Python 2.5.2 and Pygame 1.8.1
spotlight

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


Apr 13, 2014

Apr 9, 2014

Mar 18, 2014


Mar 15, 2014


Mar 14, 2014

Mar 13, 2014

Mar 11, 2014

Mar 9, 2014

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