02-20-2007, 06:17 AM
Joe, it's a lot more complicated than you may think. The original poster requested being able to
1) Tiles don't move. So I'd have to add new
2) The
There are plenty of other potential problems. For instance, a moving platform should turn around if the bricks
And from experience, I know that there are probably other problems I haven't even considered that I would discover once I tried to implement somethign like this.
BTW, the game is done in straight C, not C++, so there are no objects. I wish it were in C++... that would've made a lot of things easier. But I didn't learn object-oriented programming until I was nearly finished with the game.
build ontoplatforms. This would imply not just one brick, but perhaps a whole wall of bricks, each on top of the other, riding on the moving platform. Problems:
1) Tiles don't move. So I'd have to add new
wall tilesprites, of every conceivable graphic, as a sprite, and program all monsters / Jack / etc. to treat them as normal walls.
2) The
building on topof each other element would be very hard. When the platform moves, the brick riding on it would have to detect that it's on a moving platform, and therefore offset itself accordingly. BUT -- so does the brick
on topof this brick! And so on.
There are plenty of other potential problems. For instance, a moving platform should turn around if the bricks
built ontoit hit a wall, even if the platform itself hit nothing. That would be really hard!
And from experience, I know that there are probably other problems I haven't even considered that I would discover once I tried to implement somethign like this.
BTW, the game is done in straight C, not C++, so there are no objects. I wish it were in C++... that would've made a lot of things easier. But I didn't learn object-oriented programming until I was nearly finished with the game.

