Light fuck: At least I've figured out what the fuck was wrong with.

This commit is contained in:
minjaesong
2017-09-12 21:29:45 +09:00
parent ade53831a8
commit 02e0c1365b
15 changed files with 99 additions and 54 deletions

View File

@@ -12,6 +12,8 @@ import com.badlogic.gdx.graphics.glutils.ShaderProgram;
import net.torvald.terrarumsansbitmap.gdx.GameFontBase;
import net.torvald.terrarumsansbitmap.gdx.TextureRegionPack;
import java.util.Random;
/**
* Created by minjaesong on 2017-08-01.
*/
@@ -49,6 +51,12 @@ public class TerrarumAppLoader implements ApplicationListener {
public static GameFontBase fontGame;
/**
* For the events depends on rendering frame (e.g. flicker on post-hit invincibility)
*/
public static int GLOBAL_RENDER_TIMER = new Random().nextInt(1020) + 1;
public static void main(String[] args) {
appConfig = new LwjglApplicationConfiguration();
appConfig.vSyncEnabled = false;
@@ -160,6 +168,9 @@ public class TerrarumAppLoader implements ApplicationListener {
else {
screen.render(Gdx.graphics.getDeltaTime());
}
GLOBAL_RENDER_TIMER += 1;
}
@Override