public TestScreen() { super(); MapLoadTestMDO mapTestMDO = RGlobal.data.getEntryFor("map_test", MapLoadTestMDO.class); Level map = RGlobal.levelManager.getLevel(mapTestMDO.map); this.canvas = map; TextBoxTestMDO testMDO = RGlobal.data.getEntryFor("test_textbox", TextBoxTestMDO.class); if (testMDO != null && testMDO.enabled == TestState.ENABLED) { FontMDO fontMDO = RGlobal.data.getEntryFor(testMDO.font, FontMDO.class); font = new FontHolder(fontMDO); TextBoxMDO textMDO = RGlobal.data.getEntryFor(testMDO.box, TextBoxMDO.class); box = new TextBox(textMDO, font); box.setText(testMDO.text); } commandContext = new TestCommandMap(); z = 0; defaultFont = new BitmapFont(); batch = new SpriteBatch(); cam.track(RGlobal.hero); init(); }