Player movement seems like back to working, res→assets

Former-commit-id: f91181caee4dabf4cb2e51d8077441c6b0f83757
Former-commit-id: 8b450303698c5c85dea9145a056b290b95a6a7b0
This commit is contained in:
Song Minjae
2016-08-02 17:32:42 +09:00
parent 5e7a95a3b9
commit 17c39c1824
248 changed files with 371 additions and 104 deletions

View File

@@ -1,5 +1,6 @@
package net.torvald.terrarum
import net.torvald.imagefont.GameFontWhite
import org.newdawn.slick.Font
import org.newdawn.slick.GameContainer
import org.newdawn.slick.Graphics
@@ -17,6 +18,8 @@ class StateFontTester : BasicGameState() {
override fun init(gc: GameContainer, game: StateBasedGame) {
canvas = Graphics(1024, 1024)
gameFont = GameFontWhite()
}
override fun update(gc: GameContainer, game: StateBasedGame, delta: Int) {
@@ -24,7 +27,8 @@ class StateFontTester : BasicGameState() {
}
override fun render(gc: GameContainer, game: StateBasedGame, g: Graphics) {
g.font = gameFont
g.drawString(textToPrint, 10f, 10f)
}
override fun getID(): Int = Terrarum.SCENE_ID_TEST_FONT