read a .we minetest schema
- use ground has maze walls
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user