summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-01-31 01:46:31 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-01-31 01:46:31 +0100
commit9af3b6bd500f16ba0f0c579ef89dbf50239de746 (patch)
treeb04b8f2705011f67cf00555d2a4399edd70d85ba
parent7eab251b2b772fb06fe7bf32f764a0b1ef87cabc (diff)
downloadRustAndDust-9af3b6bd500f16ba0f0c579ef89dbf50239de746.zip
RustAndDust-9af3b6bd500f16ba0f0c579ef89dbf50239de746.tar.gz
RustAndDust: setup DB
-rw-r--r--core/src/ch/asynk/rustanddust/RustAndDust.java6
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();