Skip to content

Commit 4f043ce

Browse files
committed
Added 2 new dirt tiles
1 parent 752ec7a commit 4f043ce

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

res/levels/custom_level.png

104 Bytes
Loading

src/com/redomar/game/level/tiles/Tile.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public abstract class Tile {
2020
private static final Tile CARPET_red = new BasicTile(10, 5, 0, Colours.get(-1, 311, 411, 311), 0xFFAA3636);
2121
private static final Tile PORTAL = new AnimatedTile(11, new int[][] { { 3, 5 }, { 4, 5 }, { 5, 5 }, { 6, 5 }, { 7, 5 }, { 8, 5 }, { 9, 5 }, { 10, 5 } }, Colours.get(-1, 005, 305, -1), 0xFF00EAFF, 100);
2222
private static final Tile MAGMA = new AnimatedTile(12, new int [][] { { 0, 5 }, { 1, 5 }, { 2, 5 }, { 1, 5 } }, Colours.get(-1, 400, 511, -1), 0xFFF00F0F, 1000);
23+
private static final Tile DIRT = new BasicTile(13, 3, 0, Colours.get(0, 210, 321, -1), 0xFF442200);
24+
private static final Tile DIRT_WET = new AnimatedTile(14, new int[][] { { 1, 5 }, { 2, 5 } }, Colours.get(-1, 211, 322, -1), 0xFF663300, 1500);
2325

2426
protected byte id;
2527
protected boolean solid;
@@ -116,4 +118,12 @@ public static Tile getMagma() {
116118
return MAGMA;
117119
}
118120

121+
public static Tile getDirt() {
122+
return DIRT;
123+
}
124+
125+
public static Tile getDirtWet() {
126+
return DIRT_WET;
127+
}
128+
119129
}

0 commit comments

Comments
 (0)