Wednesday, March 2, 2016

Polishing the code

Hello!
Today, I worked at polishing the code. I have moved functions from many minor scripts, for example responsible for changing background, into one environment script. It gives me better control over game. I have also cleaned the code from unused variables and debug logs and categorised the existing variables to get a better view and been able to debug game faster. Game over screen should allow you to back to main menu correctly now.


I have removed switching backround using numpad keys, you can do it in random game menu. Changing daytime and weather using keyboard in game has also been removed. Cursor have been properly implemented and it's shown only when one of the menus is active.