Game Blog with Some Content I Think.

Posted by Charlie Carlo on Nov. 22, 2012, 11:03 a.m.

Okay, so Credence Filter's engine is so ridiculous that I feel incredibly accomplished whenever I successfully implement a feature that usually comes standard in Game Maker.

Case in point, backgrounds.

I last modified the engine to support two levels of tiles, but the game still felt flat. So here I've added the capability for parallax backgrounds behind tiles, but that wasn't the difficult part.

The difficult part was creating a surface (every step) that I can use as a layer mask to cut out the shadows/highlights that were magically floating in the air. I ended up creating a new layer of tiles, all white, beneath the bottom layer. I also created a dummy object with a depth of 1 more than this tile layer, that upon draw event, sets the surface to be the mask, that way, when the tiles go to draw they will be drawn to this surface.

Then I draw the regular tile surface to this surface with extended blend mode (bm_zero,bm_inv_src_alpha) which draws it black, because apparently you can't color blend surfaces. Finally, I subtract or add this to the surfaces for light and shadows, respectively, before blending those surfaces to the screen.

Also, I made drop shadows darker and increased the view size, but those things aren't really that amazing.

Anyways, enough rambling, this is what it looks like.

Next thing on my list is that terrible placeholder shading beneath stairs.

Oh yeah I also made some songs.

EDIT: Also, happy Thanksgiving, to any Americans on here.

I drew you a hand turkey.

Comments

firestormx 11 years, 11 months ago

Your CSS modifications aren't bad either.

FearedMachina 11 years, 11 months ago

Looks fucktastic, I love it. Reminds me of old projects of mine with experimetnal lighting. (Gear_god light engine)