Post
Well, I didn't very far. Certainly a lot of development happened in the last frenzied hours.PyInstaller didn't work on windows with pygame. Wasted hours trying to get that work. Not that I expected much from windows, or python packaging. I ended up using someone's py2exe script. It worked fine on linux though.
So much stuff got missed out, proper collision hulls, collisions between entities, sound beyond the fireballs, actual gameplay, proper controls...
If only the rules didn't require you to start from scratch. Re-implementing things I've already done was a huge pain. Either that, or not having a life-sucking full-time job. If you are going to try 'playing' it, I'd suggest using a gamepad, as effort behind mouse + keyboard was mostly dropped as soon as I got that working.
(log in to comment)
Comments
I hacked in keyboard support for fireballs (on l) so I could see what they looked like by editing main.py
--- main.py 2013-04-21 11:45:30.000000000 +0200
+++ main_edited.py 2013-04-24 10:10:30.000000000 +0200
@@ -197,6 +197,14 @@
elif event.key == K_p:
resourcemanager.sounds["select"].play()
self.game.set_state(PauseState(self.game, self))
+ elif event.key == K_l:
+ tx = self.camera.pos.x + self.cross.rect.x - self.player.entity.pos.x
+ ty = self.camera.pos.y + self.cross.rect.y - self.player.entity.pos.y
+ if tx == 0 and ty == 0: tx = 1
+ self.entities.append(entity.make_fireball(self,
+ self.player.entity.pos.x,
+ self.player.entity.pos.y,
+ tx, ty))
elif event.key == K_F12:
for i in range(200):
filename = 'screenshot{}.png'.format(i)
Cosmologicon on 2013/04/22 22:01:
I don't have a gamepad. How do you shoot fireballs using the mouse or keyboard?