Allegro.cc - Online Community

Allegro.cc Forums » The Depot » Announcing Fire Starter (Speedhack 2005)

This thread is locked; no one can reply to it. rss feed Print
 1   2 
Announcing Fire Starter (Speedhack 2005)
Michael Jensen
Member #2,870
October 2002
avatar

Very polished looking, looks like you had a lot of help (credits make it seem that way anyway) :)

Quote:

I tried compiling libpng under OSX in order to compile this, and it flipped out. I'm not sure if I should have tried it on the source instead of building it as a lib (the docs said to do this).

Could you just convert the graphics from png to something else and use load_bitmap instead of load_png (or whatever libpng uses?)

Quote:

static void switch_in() { gSys->maingame->paused = false;}static void switch_out() { gSys->maingame->paused = true;}

Quote:

gSys is clearly valid before any MainGame's are constructed, and gSys->maingame is set as soon as a MainGame class is constructed. So my conclusion is if somehow a switch-in/out happens in the middle of MainGame's constructor, then I guess the pointer could be invalid. That seems highly improbably, but if that is the case, moving the lines for setting the callback (MainGame's constructor):

Quote:

maingame = new MainGame;

This makes sense, because until the constructor returns the assignment to maingame doesn't happen. Switching in/out should crash the game on any platform since it is assigned an invalid or possibly NULL value... it seems that maybe Mac OS just likes to send this event as the program is starting.

Marcello
Member #1,860
January 2002
avatar

Actually, it is linux that is doing this, but I've already fixed the problem by simply making it a global variable.

As for help, yep. But that's all part of making a game.

Marcello

Michael Jensen
Member #2,870
October 2002
avatar

Quote:

had a lot of help

Sorry if jeasousy seems evident. -- Take it as a compliment ;)

All in all, Nice work.

Toasty
Member #5,611
March 2005
avatar

Quote:

looks like you had a lot of help

Well, it was mostly Marcello and I who made the game. Travis and Maiko were both consulted on how the game should play at one point or another, but as far as actual work on the project goes, Travis made one of the two songs, and Maiko made the graphic for the title screen (where it says "press a to start"). Those were both very much appreciated, but the game could have survived without them. I don't know how much AMZ (Rodrigo) helped as I had literally nothing to do with the coding, but it's a safe bet that he was more concerned with his own entry. ;) (his help is very much appreciated though)

Quote:

The only problem that I had is a very little slowdown(music stops too) every ~5 seconds

I actually noticed this too; it seems to be due to multiple requests to start/stop the "fwoosh" sound effect at once. I suggested a workaround to Marcello but he said it wouldn't be easy to fix.

Quote:

All in all, Nice work.

Thanks! ;D

A bit offtopic, but just for the hell of it, here are a couple discarded drawings I made to pass the time while we were still deciding on what game to make (i.e. the first 36 hours of compo): urf and bucketman

On another note, my personal high score on Firestarter is 41,705. 8-)

Marcello
Member #1,860
January 2002
avatar

I actually ended up not using any of AMZ's code in the speedhack version, but intend to (and have) used bits in the upcoming patch version.

As for the slowdown every 5 seconds, I have a badass computer, so I haven't noticed this, nor do I have any idea why it happens. Maybe because I update logic at 100fps? Or maybe it's an STL or garbage collection thing.

Marcello

Michael Jensen
Member #2,870
October 2002
avatar

Quote:

urf and bucketman

I saw both of those screen shots on the blogs and wondered where they were! Too bad they never got made.

 1   2 


Go to: