special symbols to use shortcuts instead of literals

This commit is contained in:
minjaesong
2019-08-05 04:19:00 +09:00
parent bed655448d
commit 63b1fcb870
17 changed files with 51 additions and 24 deletions

View File

@@ -6,6 +6,7 @@ import com.badlogic.gdx.backends.lwjgl.LwjglApplication
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration
import com.badlogic.gdx.graphics.g2d.BitmapFont
import com.badlogic.gdx.graphics.g2d.SpriteBatch
import net.torvald.EMDASH
import net.torvald.terrarum.gdxClearAndSetBlend
import net.torvald.terrarum.inUse
@@ -98,7 +99,7 @@ class GetKeycode : Game() {
}
override fun render() {
Gdx.graphics.setTitle("Get Keycode F: ${Gdx.graphics.framesPerSecond}")
Gdx.graphics.setTitle("Get Keycode $EMDASH F: ${Gdx.graphics.framesPerSecond}")
gdxClearAndSetBlend(.1f,.1f,.1f,1f)

View File

@@ -9,6 +9,7 @@ import com.badlogic.gdx.graphics.OrthographicCamera
import com.badlogic.gdx.graphics.Pixmap
import com.badlogic.gdx.graphics.Texture
import com.badlogic.gdx.graphics.g2d.SpriteBatch
import net.torvald.EMDASH
import net.torvald.random.HQRNG
import net.torvald.terrarum.Point2i
import net.torvald.terrarum.inUse
@@ -99,7 +100,7 @@ class NoopRectTest(val appConfig: LwjglApplicationConfiguration) : Game() {
texture.dispose()
texture = Texture(pixmap)
Gdx.graphics.setTitle("No-op Rectangle Test F: ${Gdx.graphics.framesPerSecond}")
Gdx.graphics.setTitle("No-op Rectangle Test $EMDASH F: ${Gdx.graphics.framesPerSecond}")
batch.inUse {
batch.projectionMatrix = camera.combined