amethyst / evoli

An ecosystem-simulation game made with Amethyst
https://community.amethyst.rs/t/evoli-introduction/770
Other
217 stars 33 forks source link

Add a Date/Time indicator #54

Open sunreef opened 5 years ago

sunreef commented 5 years ago

Add a timer at the top of the screen that shows the current Date/Time. This requires defining a scaling from real time to in-game days.

orhanbalci commented 5 years ago

I would like to work on this. What sort of scaling should we use? Some details would be nice

sunreef commented 5 years ago

The scaling can be pretty much anything. You could decide that one second in real-time is one minute in-game.

I would add a DaytimeScalingFactor (or some other name) resource to the game that controls this. This way, we can always change it later.

orhanbalci commented 5 years ago

I understand that simple linear scaling is sufficient than.

chrispetkau commented 5 years ago

Hi orhanbalci. I want to let you know that I am working on switching background music based on day-night cycle events (https://github.com/amethyst/evoli/issues/76). For now, I'm just using hotkeys to proxy the events, but eventually I'll expect the date-time system to produce them. That integration can occur after we've both got our stuff committed.