PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Rebel runner - Operation Wolf style game

gabriele_scibilia · 13 May 2002, 21:42 UTC
Someone would like to help bringing me some cool graphics?
I'd like to code that game....

Ga
You'll need some code that I have here. It's basically the c-buffer stuff from the bouncing balls demo, but instead of being used to draw sprites it draws layers for parallax scrolling.

It comes with a 'layer compiler' that breaks up a large .tga file in horizontal spans of pixels by finding rows of adjacent pixels between the black pixels. If you are working on some cave game for example, lots of pixels are black (the cave itself, space where you can move) and lots of pixels are brown or whatever. The compiler finds horizontal spans of brown pixels in that case. :)

The code I mentioned draws these layers, front to back, with zero overdraw. This is very fast; you can get away with 10 layers or more, depending on their complexity.

I need to work a bit more on that compiler, it should detect spans that have the same content, so that it can reuse them: For example, you're working on a Wolf level and you paste one village house on a huge .tga at 10 different positions. That means that each span of the village house is used at least 10 times in the .tga, or in other words, the file that the compiler outputs just got 10 times smaller. That's pretty important for a PocketPC game. I hope to shrink the average level for a sideway scroller to decent proportions this way, while keeping the pretty awesome sight of 10 layers running at different speeds. :) Now that's depth. ;)

So in short, I'll post the code soon. If I can't find the time to port it to PocketPC I'll port the PC sources.

- Jacco.
gabriele_scibilia · 14 May 2002, 19:38 UTC
Thank you for your help but I'm still searching for a graphician as I cannot afford that effort:(
Anyway I'll certainly read your listings, I've hope of learn something collecting and reading other people sources.

Ga
Can someone help this man with the art side? :)
why dont you try using tiles and objects instead, wouldnt that reduce the size even more?? with 1 tile representing the 200 or so houses, your game just got even smaller!!! not to mention, more skinnable!!
I can help with the art ... if my game proposal got rejected :(

I'm experienced with game graphic arts.
I didn't reject any proposals. If you sent it yesterday, please have a little patiece, I've been out of the office yesterday. :)