Comments on warm-up games

Hey all,

First, a quick introduction about myself. Pyweek 1, didn't finish a game, pyweek 2, finished an incomplete game (= no polish), pyweek 3, missed it entirely, so I'm back here on pyweek 4. :)

Pyweek is just an excuse for me to spare some time and create a game, I don't intend to win or anything. :P

Anyway, I was working on a warm-up game, but I kinda dropped it, because it wasn't looking good and didn't have the time to finish it. Maybe I'll continue it but I'm not sure about it.

So, I decided to comment a bit on each warm-up game submitted.


--

saluk: one_0.2

At first try, it was stopping at loading the font. I think I'm missing Arial (I'm on Linux, Ubuntu 6.10). Switched it to pygame.font.get_default_font() and it worked.

It's nice for some quick fun, and I liked the idea of using 1 second for the theme. The 3 2 1 annoys me a bit, though, and sometimes I lost because I collided, yet I wasn't close enough (but, yes, doing a nicer collision can be annoying :)).


Hectigo: One is Enough.

It was complaining about not finding the modules when I tried running run_game.py, so I had to run main.py directly with a few modifications. Also, just to let you know, I'm getting some deprecation warnings during the game:
/tmp/one is enough/bin/bank.py:26: DeprecationWarning: integer argument expected, got float
  scaledimage = pygame.transform.scale(self.image, (self.rect.width, self.height))

I wasn't able to figure out a few things. What's the difference between the red bar and the yellow bar? And what does sending a ball to labour camp do aside giving you points?

I keep losing, but, then again, I lose everywhere. :) I started holding down Z to always regenerate faster and I did a bit better, but eventually lost. (Really, I can't beat this game. Gah.)

The visuals are simple, but I like them. I would like the game more if I could just figure out a winning strategy, but I enjoy a good challenge anyway. :)


JDruid: Sticky Bomb

I like the music (though I prefer your other music from Funny Boat from Pyweek 2), and I think the idea is original and good. Catching bombs in the air and throwing them far away (or not, see below) was fun.

More than a few times, I forgot bombs bounced on edges and tried to throw them off screen. The result was the same as, um, throwing a grenade at a wall. :)


RB[0]: Balloon Ballistics

Strange error when trying to start a game from the main menu. Anyone help? I can't figure it out.

Traceback (most recent call last):
  File "BB.py", line 504, in ?
    main()
  File "BB.py", line 484, in main
    cur = play("level1.txt")
  File "BB.py", line 57, in play
    level_type(onlevel)
  File "BB.py", line 253, in level_type
    level_data=load_level.load_dict(os.path.join("levels",on_level))
  File "LIB/load_level.py", line 34, in load_dict
    a = load(f)
  File "LIB/load_level.py", line 25, in load
    exec(f)
  File "", line 1
    mode="get_to_1"
                   ^
SyntaxError: invalid syntax


eugman's incomplete game

Well, if you think it's going to be fun, then I think you should complete it. I can't say much because just by playing it I have no idea what it is. :P

--

(Ugh. I vote on having a larger text box here on Add Diary Entry. :P How do I avoid having to write all linebreaks?)

Am I missing any game?

(log in to comment)

Comments

You could consider mine. I plan on finishing it up tomorrow.

And btw, I'm resizing the textarea using a firefox web developer plugin :D I can send you the link.
Hello, please don't forget my game, Pillows. It is located on this thread.

I think it's great that you're giving everyone feedback on their warm-up games. :)

Thanks for the comments, it's nice to see someone commenting all the games.

As for the deprecation warning, I'll fix that issue in the next version. Besides that, run_game.py seemed to work for me. What OS are you on, and are you running the latest version of Python and Pygame?

And it's no wonder if you can beat the game, because for now, the game isn't winnable. The communists always lose in the end, so it's just about maximizing score. I've been thinking to revise the game balance a bit to allow for longer games, though.

The yellow HP bar exists just to show when the ball can collide safely - when the bar is all red, the ball will be converted on collision. Besides that, it doesn't mean anything. I'll add documentation about this and other stuff too in the next version. Sending balls to the labour camp only increases the score in the current version, but I guess it could do something else too, like power up the regeneration.

Yay, the box is larger, thanks whoever did that. :) Does anyone know if there's a way to avoid having to put a br tag in every line?

Hectigo: Linux, Python 2.4, Pygame 1.7.1. Emptyskull described my problem better in the ""One is enough" for the..." thread and richard fixed it in the skellington.

So that explains why I always lose. :) But now that I know what the yellow bar does, it turned out to be quite useful. It's not obvious that it's not winnable, because you start getting stronger, then you're suddenly overwhelmed. It lacks that feeling of achievement. Right now it just makes you think you can beat it, and then suddenly laughs at you without mercy. :)


fydo: Pillows

Giant pillows! Whee. Graphics are very nice, and the idea is nice, in a wacky sort of way (gigantic pillows protecting us from intergalactic war).

I got to level 5 and can't get past it. But sometimes when I hit the right spot at first try, I missed a button that made the bomb fall faster.

Minor bug: When the bomb falls on a pillow while there's a pillow in the air (and the catapult is released), the catapult doesn't show up on the next level.
regarding the error
Ummm, I wasn't expecting that...
when I saw that you had an error, I assumed it was some funky opengl thing *shrug*

That syntax is perfectly good, IMHO. And it has worked very well in that respect for me. So it must be another thing.

I am guessing two possible culprits:
a. The file I uploaded could have had other errors besides just undoing all of my bug-fixes :/

b. It could be something based on you using linux, and not windows(which I used for this game...)

Perhaps you could try the bonus levels I linked to, and tell me what happens, or try the continue button :)

Could someone on windows please test this, so that I can fix it!

Thanks
RB[0]: you might be running into problems because your file has Windows-style newlines and you can't exec() that on Linux. For example:
>>> s='''a="hello"
... print a
... '''
>>> exec(s)
hello
>>> s='a="hello"\r\nprint a'
>>> exec(s)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 1
    a="hello"
             ^
SyntaxError: invalid syntax
>>>

Consider instead of using plain-text files with levels in them just having them in a sub-package of your game as regular Python modules that you can import. You will get an additional benefit that level loading will be a little faster.

I have gotten in the habit of doing text.replace('\r','').split('\n') any time I deal with a file, as it works for linux or windows. It's probably too slow with the replace for large files, but I can just write it once and forget about it. It's probably kind of hacky, but works :)
Thanks for the replies, that does make sense :)

I'll probably use saluks for now though, and edit it later.
I'm also not sure what mode you're opening the file in. You could just use universal newline mode to read the data:
>>> open('test.txt', 'wb').write('a=1\r\nb=2')
>>> exec(open('test.txt').read())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 1
    a=1
       ^
SyntaxError: invalid syntax
>>> exec(open('test.txt', 'rU').read())
>>>
RB[0]: Balloon Ballistics

After running dos2unix on the .py files, I got another error related to glut (freeglut), but it worked after I downgraded it.

I don't quite understand your choice of graphics and colors. Your menu had different fonts and bright colors mixed with a white background, which sort of hurts the eyes. The between levels graphics looked like they were small then resized. Also, unless you were just practicing, opengl didn't seem necessary.

As for the gameplay, it seemed too easy until I checked the extra levels (the extra levels should be in the main package, in my opinion). I had a bit of fun trying to click as fast as I could, and there was some challenge in the extra levels (if you let them multiply just a bit too much, you're doomed), but I think that was all.


pekuja: Silver Bullet

This is one of my (warm-up) favorites so far. It's really hard to coordinate one bullet that has to hit enemies with a ship that has to avoid them. I like how the game and the graphics are simple, yet it's fun and looks nice. This is only the second game from you I played, but this is kind of your style: simple and fun.

My highscore is 499 (after many plays), and 269 when I was too lazy to move the ship. I also managed a 265 without moving the bullet, only the ship. :P At first I thought moving the ship was pointless, but it actually comes in handy when you need it.

There's a point the enemies suddenly appear all over the screen. Kinda scary. :P
Sounds like you're the best Silver Bullet player so far. :-)
I only ever got to about 300 points myself. Never got to the part where enemies suddenly appear en masse, but yeah, I know why that happens, and it's actually not intentional, but it's because the rate of enemies increases every time an enemy is spawned, so naturally when the rate of enemies spawning is high, the rate of it getting faster is also high, and thus it maxes out quickly.
You had to down-grade glut O_o!!!

I'll admit that currently I'm not running the latest versions of pyopengl/python/numeric and probably not pygame even, but glut was the one thing that I thought was totally upgraded :/

Needless to say I'm upgrading my stuff now :P


As to the opengl use, this was a warm-up, and I plan on using opengl during the compo so this provided some nice experience, and yes it was over-kill, but I got some neat effects from it ;)

And as to the colors, well, I prefer lighter games to brightly colored, personally :)
The fonts were kinda weird though, I'll admit :P, but I couldnt remember exactly which ones I used later on, so I picked ones that looked nice.

And yes, the in-between-levels images were small and then resized :/, I planned on fixing that but never got around to it.

Thanks for playing the game and for the suggestions :D
glut is tricky to require because it's not a standard part of OpenGL and you can almost guarantee it won't be installed on Windows.
RB[0]: Basically, without downgrading glut I got the message:
freeglut  ERROR:  Function <glutSolidSphere> called without first calling 'glutInit'.
and a messed up screen resolution. After a quick search on Google, I found out that downgrading it would solve the problem.


mcferrill: Forest Patrol

At first, I was a bit lost at what I was supposed to do. Some instructions would have been nice. Background music and intro image fit the game, though the sound of unsheathing the sword seems a bit out of place. I didn't play it much, but unfortunately I can't say I had much fun (but I'm not much of a fan of RTS games, either). The description at the blaze of glory site sounds like the game allows you to do more, but I wasn't able to figure out how to ambush or use trees to any advantage.

I'm getting plenty of "Unhandled event" messages during the game. Big maps are very slow, too. Also, sometimes I wish the starting points weren't random. A lot of times the enemy started right next to me.
Ahhh, thanks for the feed-back Tee :)
is glutInit() used in earlier versions of glut?

I don think I'll use it much for pyweek, but if I do I sure wouldnt want people to have to down-grade to play the game :)