Weiter am Voxel kram gebastelt
This commit is contained in:
@@ -10,8 +10,8 @@ import java.util.List;
|
||||
*/
|
||||
public class DayTime {
|
||||
|
||||
/** Standard-Tagesdauer in Echtzeit-Sekunden (15 Minuten). */
|
||||
public static final float DEFAULT_DAY_DURATION = 900f;
|
||||
/** Standard-Tagesdauer in Echtzeit-Sekunden (96 Minuten). */
|
||||
public static final float DEFAULT_DAY_DURATION = 5760f;
|
||||
|
||||
private float timeOfDay;
|
||||
private float timeScale;
|
||||
@@ -25,7 +25,7 @@ public class DayTime {
|
||||
/** @param dayDuration Echtzeit-Sekunden für einen kompletten Spieltag */
|
||||
public DayTime(float dayDuration) {
|
||||
this.timeScale = 1f / dayDuration;
|
||||
this.timeOfDay = 0.25f; // Start: Sonnenaufgang
|
||||
this.timeOfDay = 0.5f; // Start: Mittag (bessere Sicht zum Testen als Sonnenaufgang)
|
||||
}
|
||||
|
||||
public void update(float tpf) {
|
||||
|
||||
Reference in New Issue
Block a user