Skip to content
Permalink
Browse files

Fixed MapViewer entity generation

  • Loading branch information
collinsmith committed Dec 20, 2019
1 parent 866cdc0 commit b3f2a223c32e5e9789d0650842b5193b8e785a48
Showing with 5 additions and 0 deletions.
  1. +5 −0 tools/src/com/riiablo/map/MapViewer.java
@@ -107,6 +107,7 @@ public static void main(String[] args) {

int ent;
World engine;
MapManager mapManager;
RenderSystem mapRenderer;
PathfindDebugger pathfindDebugger;
protected ComponentMapper<Position> mPosition;
@@ -193,13 +194,16 @@ public void create() {

map = new Map(seed, diff);

mapManager = new MapManager();

RenderSystem.RENDER_DEBUG_SUBTILE = true;
mapRenderer = new RenderSystem(batch, map);
mapRenderer.resize();

WorldConfiguration config = new WorldConfigurationBuilder()
.with(new EventSystem())
.with(new TagManager())
.with(mapManager)
.with(new CofManager())
.with(new ObjectInitializer())
.with(new ObjectInteractor(), new WarpInteractor(), new ItemInteractor())
@@ -247,6 +251,7 @@ public void create() {
map.load();
map.finishLoading();
map.generate();
mapManager.createEntities();

box2DPhysics.setEnabled(false);
box2DPhysics.createBodies();

0 comments on commit b3f2a22

Please sign in to comment.
You can’t perform that action at this time.