mirror of
https://github.com/littlektframework/littlekt-game-template.git
synced 2025-01-25 10:11:28 -07:00
update to littlekt 0.6.0
This commit is contained in:
parent
504cd11ea7
commit
005319343c
2 changed files with 8 additions and 5 deletions
|
@ -2,9 +2,12 @@ package com.game.template
|
|||
|
||||
import com.lehaine.littlekt.Context
|
||||
import com.lehaine.littlekt.ContextListener
|
||||
import com.lehaine.littlekt.graphics.*
|
||||
import com.lehaine.littlekt.graphics.Color
|
||||
import com.lehaine.littlekt.graphics.Fonts
|
||||
import com.lehaine.littlekt.graphics.g2d.*
|
||||
import com.lehaine.littlekt.graphics.g2d.shape.ShapeRenderer
|
||||
import com.lehaine.littlekt.graphics.gl.ClearBufferMask
|
||||
import com.lehaine.littlekt.graphics.shape.ShapeRenderer
|
||||
import com.lehaine.littlekt.graphics.toFloatBits
|
||||
import com.lehaine.littlekt.math.geom.degrees
|
||||
import com.lehaine.littlekt.math.geom.radians
|
||||
import com.lehaine.littlekt.util.viewport.ExtendViewport
|
||||
|
@ -30,7 +33,7 @@ class Game(context: Context) : ContextListener(context) {
|
|||
gl.clear(ClearBufferMask.COLOR_BUFFER_BIT)
|
||||
|
||||
batch.use(camera.viewProjection) {
|
||||
Fonts.default.draw(it, "Hello LittleKt!", 0f, 0f)
|
||||
Fonts.default.draw(it, "Hello LittleKt!", -15f, 0f)
|
||||
shapeRenderer.filledRectangle(-25f, 50f, 100f, 50f, rotation, color = Color.RED.toFloatBits())
|
||||
}
|
||||
rotationTimer += dt
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
[versions]
|
||||
plugin-android = "7.2.2"
|
||||
plugin-kotlin = "1.7.20"
|
||||
plugin-kotlin = "1.8.10"
|
||||
|
||||
kotlinx-html = "0.7.2"
|
||||
kotlinx-coroutines = "1.6.4"
|
||||
|
||||
littlekt = "0.5.0"
|
||||
littlekt = "0.6.0"
|
||||
|
||||
[libraries]
|
||||
plugin-android = { module = "com.android.tools.build:gradle", version.ref = "plugin-android" }
|
||||
|
|
Loading…
Reference in a new issue