mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-15 13:04:05 +09:00
Greek support, modular weather, command history for console window
Former-commit-id: b72d0b018c084e80cf4fef77e1b1a81101d6daea Former-commit-id: 32da6a2998826de6519a901dcff7bf058f689b2f
This commit is contained in:
@@ -4,7 +4,7 @@ package net.torvald.terrarum.gamemap
|
||||
import org.dyn4j.geometry.Vector2
|
||||
import org.newdawn.slick.SlickException
|
||||
|
||||
class GameMap
|
||||
class GameWorld
|
||||
/**
|
||||
* @param width
|
||||
* *
|
||||
@@ -36,7 +36,7 @@ constructor(//properties
|
||||
var gravitation: Vector2 = Vector2(0.0, 9.8)
|
||||
/** RGB in Integer */
|
||||
var globalLight: Int = 0
|
||||
val worldTime: WorldTime
|
||||
val time: WorldTime
|
||||
|
||||
var generatorSeed: Long = 0
|
||||
|
||||
@@ -50,8 +50,7 @@ constructor(//properties
|
||||
terrainDamage = PairedMapLayer(width, height)
|
||||
wallDamage = PairedMapLayer(width, height)
|
||||
|
||||
globalLight = 0.toChar().toInt()
|
||||
worldTime = WorldTime()
|
||||
time = WorldTime()
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -169,7 +168,7 @@ constructor(//properties
|
||||
}
|
||||
|
||||
fun updateWorldTime(delta: Int) {
|
||||
worldTime.update(delta)
|
||||
time.update(delta)
|
||||
}
|
||||
|
||||
fun terrainIterator(): Iterator<Int> {
|
||||
Reference in New Issue
Block a user