Apply new map binary format | remove old maps
This commit is contained in:
@@ -28,7 +28,6 @@ public abstract class BaseMapHandler implements MapHandler {
|
||||
protected Camera camera;
|
||||
protected GameMap map;
|
||||
protected Player player;
|
||||
protected ObjectLayer mainLayer;
|
||||
protected CameraController cameraController;
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
package com.bartlomiejpluta.demo.map;
|
||||
|
||||
public class ForrestHandler extends BaseMapHandler {
|
||||
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
package com.bartlomiejpluta.demo.map;
|
||||
|
||||
import com.bartlomiejpluta.base.api.context.Context;
|
||||
import com.bartlomiejpluta.base.api.map.model.GameMap;
|
||||
|
||||
public class ForrestTempleHandler extends BaseMapHandler {
|
||||
public static final String UID = "f845355e-b9ad-4884-a217-dd3a4c18a3fa";
|
||||
public static final A.maps.GameMapAsset_Layers_ForrestTemple LAYERS = A.maps.forrest_temple.layers;
|
||||
|
||||
public static final int MAIN_LAYER = 4;
|
||||
|
||||
@Override
|
||||
public void onCreate(Context context, GameMap map) {
|
||||
super.onCreate(context, map);
|
||||
this.mainLayer = map.getObjectLayer(MAIN_LAYER);
|
||||
}
|
||||
}
|
||||
@@ -82,8 +82,8 @@ public class DemoRunner implements GameRunner {
|
||||
menu.closeAll();
|
||||
menu.enableGameMenu();
|
||||
resetPlayer();
|
||||
context.openMap(A.maps.forrest.uid);
|
||||
context.getMap().getObjectLayer(A.maps.forrest.layers.main).addEntity(this.player);
|
||||
// context.openMap(A.maps.forrest.uid);
|
||||
// context.getMap().getObjectLayer(A.maps.forrest.layers.main).addEntity(this.player);
|
||||
player.setCoordinates(5, 36);
|
||||
context.resume();
|
||||
hud.show();
|
||||
|
||||
Reference in New Issue
Block a user