End of Day 1

Well, I've got a title:
Killer Steam-Powered Robots from Dimension X

I've got the interface and colision-detection working, but no real game yet. Still, you can run around and bump into rocks.
Version 0.01

(log in to comment)

Comments

Heh, fast work :)

I got caught in the corner, surrounded by rocks the first time I ran it :)

Yes, there is that....

I plan for rocks to be destroyable, so that I don't need to worry about stuff like that.

I get this error, though I have no clue why:
C:\Documents and Settings\Owner\Desktop\Downloads\killer-robots\code>python robo
ts.py
Traceback (most recent call last):
  File "robots.py", line 39, in ?
    g.load_images()
  File "C:\Documents and Settings\Owner\Desktop\Downloads\killer-robots\code\g.p
y", line 61, in load_images
    images[filename] = pygame.image.load(image_dir+"/"+filename)
pygame.error: Unsupported image format
Furthermore, I run Windows, and have no idea what that shell script does, or if it's important :) So..
The script is for Linux; you can ignore it.

I'm not quite sure why you're getting that error, though I think it's bad news for me. (I've got a Win computer here; I'll look into it.)

I've got the same error on Mac OSX after I opened the image folder the first time because the OS had created a ".DS_Store" file. I think there are similar hidden files under Windows, aren't there?

The game's looking nice so far, btw :)

Ah! Now I see. Fixing...
I fixed it by adding this line...
    for filename in os.listdir(image_dir):
        if filename.endswith(".png"):
            images[filename] = pygame.image.load(image_dir+"/"+filename)
dbickett: you could also use glob.glob instead of os.listdir
dOb: no, i added the second line in that snippet. I was just trying to keep the context.