Monday, February 8, 2016

Fifty shades of my game

I've just added the single reason why you will stay in the lit areas: shades.

Shades are little creatures of the night. When a shade reaches the player, it will inflict damage, which will pump up the fear meter. The amount of damage will be based on how much light is received by the player. The fear meter gradually shrinks on its own. However, if it reaches 100%, the player will "wake up" at the start of the map, next to the bed. (A bed will mark each level's beginning.)

So far I'm just generating shades at random positions (inside a radius of the player) with a random orientation. However, I will fine-tune the generator algorithm, so that shades will appear in dark places more frequently.

I've made a prefab containing a particle system (the shade's body) and a sprite (the shade's eyes). Shades also have a "Shade" component, which makes the shade move forward, and is responsible for terminating it after 3 seconds. It will also modulate the opacity of the shade so that it doesn't just disappear.

(Gif in full post)


So, here is a gif from the early version, which just generates shades randomly, and they have no effect on the player as of yet.


No comments:

Post a Comment