Devlog 26: Lighting

The time has come to finally start adding proper lighting to the game. Previously lights were only visible during the night sections of the game, but now actual sunlight has been added along with a rough simulation of sunrise and sunset (the light is tinted orange during the morning and gradually fades into a more natural white, all while moving from east to west throughout the day). I’ve also decided it time time to stop ignoring what needed to be done and have started to clean up much of the code for traveling between or viewing different floors.

Also as a personal anecdote: don’t do what I’m doing. That is, don’t fight the engine trying to do something it’s not meant for. Multiple layers are not meant to coexist in the same space in a 2D game. Things will break. You will have a complete breakdown trying to make sure everything is toggled back and forth between the correct states. Listen to what other people are telling you when they say it’s a bad idea. Because it is. But I’m stuck with it now, so I might as well just keep going and see what happens.

Some of the highlights:

  • Added basic sunrise/sunset light effects
  • Added windows
  • Added preview for where cameras can and cannot be placed
  • Cameras now use lights to display their coverage area properly
  • Cameras can no longer be placed directly next to each other
  • Started redesign for main menu
  • Added additional dialogue for characters

I’m still avoiding fixing the issues with NPC navigation between floors, because it barely works now and I really don’t want to try to fix it again until the time is right.

Leave a Reply

Your email address will not be published. Required fields are marked *