i has failed

Posted by
July 7th, 2008 4:22 am

Didn’t spend much time, and also had no idea.. thought I still put up what I got: here

It needs python, pygame and pyopengl to run (..hm, for the real LD, I have to find someone who can make me a py2exe and py2app version of my entry). You can run until you touch the turnip if you want, but nothing will happen even then. Except for the unicorn, it also totally fails the theme and at no point I was even close to an idea 😛

The good things about this mini LD for me though were, I think I know now how I could easily do one of those motocross games.. just need to use 2 or 3 collision circles instead of a single point as I did here, and some spring forces between. Also, I was surprised how easy it was to read SVG files – took me a total of 5 minutes to develop loader code for it (first few lines of line.py).

Tags: , , , ,

2 Responses to “i has failed”

  1. ArmchairArmada says:

    I tried to run it, but OpenGL is giving my an invalid value error. Judging by the output it seems you are using unusual dimensions for your texture — the error message says 140×48. Texture sizes should have dimensions that are powers of 2. The problem seems to be in your text rendering. It’s just trying to convert the PyGame font rendered surface into a texture without making sure it fits the right dimensions.

  2. allefant says:

    Hm, yeah, I was assuming OpenGL 2.0 where it is allowed. To fix it would be rather easy, in image.py.. just would have to make sure that Image.__init__() pads the texture to power-of-two, and adjust the texture coordinates in Image.draw() accordingly. Not worth for this.. but mustlkeep it in mind for the real LD, so thanks!

Leave a Reply

You must be logged in to post a comment.

[cache: storing page]