Skip to content

Commit

Permalink
change LibKTX to SNAPSHOT release and replace custom extensions with …
Browse files Browse the repository at this point in the history
…built-in ones
  • Loading branch information
Quillraven committed Mar 26, 2024
1 parent c2425af commit 39259d1
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![Fleks](https://img.shields.io/badge/Fleks-2.7--SNAPSHOT-purple.svg)](http://kotlinlang.org/)

[![LibGDX](https://img.shields.io/badge/LibGDX-1.12.1-green.svg)](http://kotlinlang.org/)
[![LibKTX](https://img.shields.io/badge/LibKTX-1.12.1--rc1-blue.svg)](http://kotlinlang.org/)
[![LibKTX](https://img.shields.io/badge/LibKTX-1.12.1--SNAPSHOT-blue.svg)](http://kotlinlang.org/)


# Quilly Jumper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class GlProfilerSystem : IntervalSystem() {
"""
|bindings: ${profiler.textureBindings},
|drawCalls: ${profiler.drawCalls},
|calls: ${profiler.calls}
|calls: ${profiler.calls},
|fps: ${Gdx.app.graphics.framesPerSecond}
""".trimMargin().replace(Regex("(\n*)\n"), "$1")
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import com.badlogic.gdx.maps.MapLayer
import com.badlogic.gdx.maps.tiled.TiledMap
import com.badlogic.gdx.maps.tiled.TiledMapTileLayer
import com.badlogic.gdx.maps.tiled.renderers.OrthogonalTiledMapRenderer
import com.badlogic.gdx.maps.tiled.tiles.AnimatedTiledMapTile
import com.badlogic.gdx.scenes.scene2d.Stage
import com.badlogic.gdx.utils.viewport.Viewport
import com.github.quillraven.fleks.Entity
Expand All @@ -20,6 +19,7 @@ import com.quillraven.github.quillyjumper.event.GameEvent
import com.quillraven.github.quillyjumper.event.GameEventListener
import com.quillraven.github.quillyjumper.event.MapChangeEvent
import ktx.assets.disposeSafely
import ktx.tiled.use

class RenderSystem(
private val batch: Batch = inject(),
Expand Down Expand Up @@ -59,19 +59,6 @@ class RenderSystem(
sprite.draw(batch)
}

private inline fun OrthogonalTiledMapRenderer.use(
camera: OrthographicCamera,
block: (OrthogonalTiledMapRenderer) -> Unit
) {
this.setView(camera)
AnimatedTiledMapTile.updateAnimationBaseTime()
this.batch.begin()

block(this)

this.batch.end()
}

override fun onEvent(event: GameEvent) {
when (event) {
is MapChangeEvent -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,10 @@ import com.quillraven.github.quillyjumper.component.*
import com.quillraven.github.quillyjumper.event.GameEvent
import com.quillraven.github.quillyjumper.event.GameEventListener
import com.quillraven.github.quillyjumper.event.MapChangeEvent
import com.quillraven.github.quillyjumper.util.component1
import com.quillraven.github.quillyjumper.util.component2
import com.quillraven.github.quillyjumper.util.component3
import com.quillraven.github.quillyjumper.util.component4
import ktx.app.gdxError
import ktx.box2d.body
import ktx.log.logger
import ktx.math.vec2
import ktx.math.*
import ktx.tiled.*

typealias GdxFloatArray = com.badlogic.gdx.utils.FloatArray
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
org.gradle.daemon=true
org.gradle.jvmargs=-Xms512M -Xmx1G
org.gradle.configureondemand=false
ktxVersion=1.12.1-rc1
ktxVersion=1.12.1-SNAPSHOT
kotlinVersion=1.9.23
aiVersion=1.8.2
fleksVersion=2.7-SNAPSHOT
Expand Down

0 comments on commit 39259d1

Please sign in to comment.