This week I will be focusing on working on aspects of the game that can improve its gameplay.
Working on last week I set out to code both the audio and screen shake trigger together. By looking through other relevant tutorials I was able to make both triggers happen when the player walks into a collider containing the Earthquake Roar script.
Note: The camera moves when the player moves upon triggering the shake which displaces the camera. Can ask for Ross’s help to fix.
To help expedite the process some assets will be curated from Unity asset store. From these specific asset I will be taking the day and nigh skyboxes. The Kawaii Land asset features a large quantity of other assets like plants, fruits and vegetables. These can act as placeholders or last minute additions to our game if we run out of time to create our own.
To simulate a atmospheric world I added a day and night cycle using the skybox shaders by Minions Art. Using the relevant code from the tutorial I made it so that the directional light cycles after time has passed. The skybox changes accordingly to the direction of the light so depending on the direction of the light the skybox also changes from day to night.
Note: Also it seems like on play the game starts off at night. Will need to figure out how to change the default to day. Plus the models all have a glow effect at night.
Due to the many bugs related to the sketchbook and its significance to the gameplay for the game it renders the current state of our game unplayable and limits the ability for us to gather feedback. I had initially hoped for Ross’ help to fix this bug however, there has not been any signs of any improvement therefore, I decided to playtest the limits of the sketchbook and find out a way to not freeze the book.
Bug Testing the Sketchbook
Note: I think I found the reason why the book would freeze. Upon further testing the book will freeze when rapid actions performed by the player is done. When testing out the sketchbook I delayed my clicks and key presses which seems to not affect the sketchbook. Will have to ask Ross on coding to implement delayed action if possible.
Terrain
Using the map featured in Level Progression as a base I created a rough outline of the most basic elements that we wanted to add. This will be the island in the middle of a large lake.
Currently it takes 4 mins to travers around the lake. I am uncertain if this is too big of a map for our simple game. The colours chosen are simple block out and will be replaced with more fitting graphics. When testing out the grass tool I encounter a few issues. The major problem was the grass not generating on the terrain but it was not the fault of the grass tool as it works on other objects like a plane. After evaluating the settings of the grass tool I found that I needed to set the grass tool also draw on the terrain which had a different tag. The grass was able to generate on the terrain after that.
Note: The grass blending is not working properly will have to fix in the future.
Additional
Note: An error started to appear whenever I start the game. Will need to check in with Ross to see if its harmful. It currently does not impact the game. Update: Seems to be a momentary error and has disappeared.