PlaceholderGames / Gluten-Free-Waffles

Team 2 CS2S561 game
0 stars 2 forks source link

Making a day / night cycle #19

Closed WilliamAkins closed 6 years ago

WilliamAkins commented 7 years ago

As discussed in person, we should add a day / night cycle to the game. This could then have the player start the game on a Saturday morning and have to finish by Sunday night. This gives them the weekend to play the game. Certain shops or buildings may only be open at certain hours, the same with people and the locations that they're in. There could also be some events that occur at certain hours that the player can choose to either go to or miss. Below are some good example of games with day/night cycles that may be worth looking at.

The Legend of Zelda: Majora's Mask has a day / night cycle which dictates a big part of the game. With the moon getting closer and closer to the ground each day. It acts as a very distinct mechanism to drive progression. majoras-mask-clock-town

The Elder Scrolls: Skyrim is an example of a very common type of day / night cycle used in games. Where it dictates which NPCs are awake or what areas they're in. It also lets the player 'wait' a certain amount of time, allowing the player to control what time of day that they play in. skyrimse_featured

WilliamAkins commented 7 years ago

I'm going to start by working on getting a basic game clock to work and have the sun cycle through day and night on a time variable which we can change.

WilliamAkins commented 7 years ago

I've merged the day / night cycle script I've written with the master. Its not perfect but does work quite well. I will probably go and improve it a little bit further soon, such as fixing a few issues with shadows and adjusting the length of night.

WilliamAkins commented 7 years ago

Yesterday and today I started to output the day/night cycle data into a GUI system. I or someone else will end up extending the gui system but that will be in a separate issue. The issues in the previous comment still need completing.