First release

Pacewar 0.1 is right here:

https://pyweek.org/media/dl/19/onpon4/pacewar-0.1.zip

It turns out that it's quite big! Most of the size comes from the music, so I decided to package an alternative version with the music re-encoded in low quality:

https://pyweek.org/media/dl/19/onpon4/pacewar-0.1-lq.zip

This very well might be the final result; it depends on whether I succeed at the self-preservation behavior of the AI. We'll see. :)

(log in to comment)

Comments

It's crashing for me. The game won't even start :(. python pacewar.py Traceback (most recent call last): File "pacewar.py", line 26, in import sge File "/home/wilhelm/tmp/src/pacewar-0.1/sge/__init__.py", line 494, in from sge.Game import Game File "/home/wilhelm/tmp/src/pacewar-0.1/sge/Game.py", line 34, in class Game(object): File "/home/wilhelm/tmp/src/pacewar-0.1/sge/Game.py", line 1352, in Game color=sge.Color("black"), halign=sge.ALIGN_LEFT, File "/home/wilhelm/tmp/src/pacewar-0.1/sge/Color.py", line 108, in __init__ raise ValueError("Invalid color value.") ValueError: Invalid color value. I'm on 64 Bit Linux (Mint 17). Tested with Python 2.7
Again with proper formating (I hope)
python pacewar.py
Traceback (most recent call last):
  File "pacewar.py", line 26, in 
    import sge
  File "/home/wilhelm/tmp/src/pacewar-0.1/sge/__init__.py", line 494, in 
    from sge.Game import Game
  File "/home/wilhelm/tmp/src/pacewar-0.1/sge/Game.py", line 34, in 
    class Game(object):
  File "/home/wilhelm/tmp/src/pacewar-0.1/sge/Game.py", line 1352, in Game
    color=sge.Color("black"), halign=sge.ALIGN_LEFT,
  File "/home/wilhelm/tmp/src/pacewar-0.1/sge/Color.py", line 108, in __init__
    raise ValueError("Invalid color value.")
ValueError: Invalid color value.

Ok, figured it out. It needs python 3. Should have read the readme -.-'

Had to install pygame for python 3.

Some feedback for the game: It is sometimes hard to see which ship you are playing. Maybe highlight the ship you are controlling somehow?

Also, it is not easy to discern your teams ship from the enemy ships.

I think I noticed some slowdowns (on my admittedly older laptop). Is there a way to see the current framerate?

I don't know how many rounds you have to win without losing before you win the game. In the short time I played the game, I always died one round and one the next. This way you could play infinitely, especially because every time you win the next round is even harder. Maybe add an upper limit on how many rounds you have to win (absolutely) to finish the game.

And one final thing: after you die, you take over another ship without preparation. Maybe show which ship you are going to control next, show a small countdown (1-3 seconds), during which the AI keeps controlling the ship. That way you are not disoriented when you take over.

But these are just minor points. I think the game looks quite beautiful and is fun to play. Good work :)

Thanks for the comments. :) Sorry I didn't notice until now.

It is sometimes hard to see which ship you are playing. Maybe highlight the ship you are controlling somehow?

Maybe. I'll look tomorrow and see if I can find some kind of indicator graphic on OGA. It was something I was thinking about, too.

I think I noticed some slowdowns (on my admittedly older laptop). Is there a way to see the current framerate?

I didn't bother coding that in, sorry...

I don't know how many rounds you have to win without losing before you win the game. In the short time I played the game, I always died one round and one the next. This way you could play infinitely, especially because every time you win the next round is even harder. Maybe add an upper limit on how many rounds you have to win (absolutely) to finish the game.

It's when your side of the meter at the top fills up (for player 1, that's the right-hand side). It's not that you have to win four battles in a row, it's that you have to win four more battles than the other player.