Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com> Co-authored-by: sigonasr2 <sigonasr2@gmail.com>main
parent
633e59fb2d
commit
4f8552bd3c
Binary file not shown.
@ -1,9 +1,7 @@ |
|||||||
package sig; |
package sig.map; |
||||||
|
|
||||||
import java.io.File; |
import java.io.File; |
||||||
|
|
||||||
import sig.engine.Map; |
|
||||||
|
|
||||||
public enum Maps { |
public enum Maps { |
||||||
|
|
||||||
WORLD1("world1.map"), |
WORLD1("world1.map"), |
@ -0,0 +1,56 @@ |
|||||||
|
package sig.map; |
||||||
|
|
||||||
|
public enum Tile { |
||||||
|
WALL(0,0), |
||||||
|
FLOOR(1,0), |
||||||
|
PLATFORM_LEDGE(2,0), |
||||||
|
INVISIBLE_WALL(0,0,false), |
||||||
|
; |
||||||
|
|
||||||
|
final public static int TILE_WIDTH=32; |
||||||
|
final public static int TILE_HEIGHT=32; |
||||||
|
|
||||||
|
int spriteSheetX,spriteSheetY; |
||||||
|
boolean invisible; |
||||||
|
|
||||||
|
int tileWidth=TILE_WIDTH,tileHeight=TILE_HEIGHT; |
||||||
|
/*Tile(int spriteSheetX,int spriteSheetY,int tileWidth,int tileHeight) { |
||||||
|
this.spriteSheetX=spriteSheetX; |
||||||
|
this.spriteSheetY=spriteSheetY; |
||||||
|
this.tileWidth=tileWidth; |
||||||
|
this.tileHeight=tileHeight; |
||||||
|
}*/ |
||||||
|
Tile(int spriteSheetX,int spriteSheetY,boolean invisible) { |
||||||
|
this.spriteSheetX=spriteSheetX; |
||||||
|
this.spriteSheetY=spriteSheetY; |
||||||
|
this.invisible=invisible; |
||||||
|
} |
||||||
|
Tile(int spriteSheetX,int spriteSheetY) { |
||||||
|
this(spriteSheetX, spriteSheetY, false); |
||||||
|
} |
||||||
|
|
||||||
|
public int getSpriteSheetX() { |
||||||
|
return spriteSheetX; |
||||||
|
} |
||||||
|
public void setSpriteSheetX(int spriteSheetX) { |
||||||
|
this.spriteSheetX = spriteSheetX; |
||||||
|
} |
||||||
|
public int getSpriteSheetY() { |
||||||
|
return spriteSheetY; |
||||||
|
} |
||||||
|
public void setSpriteSheetY(int spriteSheetY) { |
||||||
|
this.spriteSheetY = spriteSheetY; |
||||||
|
} |
||||||
|
public int getTileWidth() { |
||||||
|
return tileWidth; |
||||||
|
} |
||||||
|
public void setTileWidth(int tileWidth) { |
||||||
|
this.tileWidth = tileWidth; |
||||||
|
} |
||||||
|
public int getTileHeight() { |
||||||
|
return tileHeight; |
||||||
|
} |
||||||
|
public void setTileHeight(int tileHeight) { |
||||||
|
this.tileHeight = tileHeight; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue