rickbatka / co-op-engine

A prototype engine for our planned co-op game. This is where we will make it work, make it network, and make it feel fun. No AI, level design, etc.
2 stars 0 forks source link

Shader for knockback / hit flashing #25

Open rickbatka opened 10 years ago

rickbatka commented 10 years ago

Right now I have a hack that tints the gameobject red if it's in knockback mode. Should ideally flash the sprite white, but I can't figure out a way to tint the sprite white without writing a shader.

Task is to either write a shader or figure out some other way to tint white (or decide red is good and we don't want shaders )

reddenx commented 10 years ago

we will eventually want shaders, without them the game will feel very bright and jagged no matter how well the assets are done, so maybe this is a good time to dive into that then.

reddenx commented 10 years ago

shaders turn out to be a pain in monogame, there's this convert from an .fx file to a .mgfx file but the .mgfx file isn't text readable. I'll see what I can do about bringing in the convert to the build scripts.