read a .we minetest schema

- use ground has maze walls
This commit is contained in:
philippe lhardy
2020-11-04 22:12:17 +01:00
parent 6402766371
commit 52a2d3f1e3
13 changed files with 430 additions and 16 deletions

View File

@@ -35,6 +35,8 @@ public class LabyModel implements WallsProvider {
public final static short RIGHT = Brick.RIGHT << FLAGLENGTH | DIRECTION | HORIZONTAL | POSITIVE;
public final static short UP = Brick.UP << FLAGLENGTH | DIRECTION | VERTICAL | NEGATIVE;
public final static short EMPTY = LEFT | DOWN | RIGHT | UP ;
// flag when a wall should be open to access this for entry
public final static short ENTRY = Brick.ENTRY << FLAGLENGTH;
// flag when a wall should be open to access this for exit
@@ -100,7 +102,7 @@ public class LabyModel implements WallsProvider {
/**
* construct LabyModel from an InputStream, yet only "raw" is supported
**/
public LabyModel(int width, int heigh, short [][] t) {
public LabyModel(int width, int height, short [][] t) {
random = null;
this.width = width;
this.height = height;