v0.7.5e: implemented a very basic first desktop module and launcher

This commit is contained in:
Evan Debenham
2019-10-22 21:39:57 -04:00
parent 4dd73f025c
commit 7670bc147c
6 changed files with 287 additions and 2 deletions

View File

@@ -21,6 +21,7 @@
package com.watabou.noosa;
import com.badlogic.gdx.Application;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.utils.TimeUtils;
@@ -119,6 +120,12 @@ public class Game implements ApplicationListener {
Game.width = width;
Game.height = height;
//TODO might be better to put this in platform support
if (Gdx.app.getType() != Application.ApplicationType.Android){
Game.dispWidth = Game.width;
Game.dispHeight = Game.height;
}
resetScene();
}
}