diff options
Diffstat (limited to 'core/src/ch')
-rw-r--r-- | core/src/ch/asynk/rustanddust/RustAndDust.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/RustAndDust.java b/core/src/ch/asynk/rustanddust/RustAndDust.java index 146b982..c675966 100644 --- a/core/src/ch/asynk/rustanddust/RustAndDust.java +++ b/core/src/ch/asynk/rustanddust/RustAndDust.java @@ -56,12 +56,15 @@ public class RustAndDust extends Game public static final String DOM = "RustAndDust"; + public static final String DB_FILE = "data/rustanddust.sqlite"; + public AssetManager manager; public Factory factory; public Ctrl ctrl; public Config config; public int hudCorrection; public Backend backend; + public DB db; public TextureAtlas uiAtlas; public BitmapFont font; @@ -102,6 +105,9 @@ public class RustAndDust extends Game this.hudCorrection = ((int) (125 * Gdx.graphics.getDensity()) - 75); debug("RustAndDust", "create() [" + Gdx.graphics.getWidth() + ";" + Gdx.graphics.getHeight() + "] " + Gdx.graphics.getDensity() + " -> " + hudCorrection); + db = new DB(Gdx.files.internal(DB_FILE).path()); + db.setup(); + manager = new AssetManager(); factory = new Factory(this); config = new Config(); |