This commit is contained in:
Asecave
2021-06-27 14:50:43 +02:00
6 changed files with 8 additions and 8 deletions

View File

@@ -40,9 +40,9 @@ public class Tile extends Knoten {
if (id == GRASS) { if (id == GRASS) {
buff = buff.getSubimage(16 * (int) (Math.random() * 8), 0, 16, 16); buff = buff.getSubimage(16 * (int) (Math.random() * 8), 0, 16, 16);
} }
if (id == STONE_FLOOR) { //if (id == STONE_FLOOR) {
buff = buff.getSubimage(16 * (int) (Math.random() * 10), 0, 16, 16); // buff = buff.getSubimage(16 * (int) (Math.random() * 10), 0, 16, 16);
} //}
// Skalieren // Skalieren
BufferedImage scaled = new BufferedImage(World.SCALE, World.SCALE, BufferedImage.TYPE_INT_RGB); BufferedImage scaled = new BufferedImage(World.SCALE, World.SCALE, BufferedImage.TYPE_INT_RGB);
scaled.getGraphics().drawImage(buff, 0, 0, World.SCALE, World.SCALE, null); scaled.getGraphics().drawImage(buff, 0, 0, World.SCALE, World.SCALE, null);
@@ -72,7 +72,7 @@ public class Tile extends Knoten {
case STONE_WALL_BOTTOM: case STONE_WALL_BOTTOM:
return "/res/images/tiles/stone_wall_bottom.png"; return "/res/images/tiles/stone_wall_bottom.png";
case STONE_FLOOR: case STONE_FLOOR:
return "/res/images/tiles/Stone_floor.png"; return "/res/images/tiles/TestTest.png";
} }
return null; return null;
} }

View File

@@ -7,22 +7,22 @@ import main.entities.Snake;
public class Corridor extends Map { public class Corridor extends Map {
public Corridor() { public Corridor() {
super(5, 10); super(15, 11);
for (int x = 0; x < map.length; x++) { for (int x = 0; x < map.length; x++) {
for (int y = 0; y < map[0].length; y++) { for (int y = 0; y < map[0].length; y++) {
//Wand //Wand
if((y == 0 || x == 0 || y == 9 || x == 4) && x != 2 ) { if((y == 0 || x == 5 || y == 10 || x == 9) && x != 7 && x >= 5 && x <= 9) {
map[x][y] = new Tile(3, x, y); map[x][y] = new Tile(3, x, y);
add(map[x][y]); add(map[x][y]);
} }
//3D-Wand //3D-Wand
else if(y == 1 && (x != 0 || x != 4)&& x != 2 ) { else if(y == 1 && (x != 0 || x != 4)&& x != 7 && x >= 6 && x <= 8 ) {
map[x][y] = new Tile(4, x, y); map[x][y] = new Tile(4, x, y);
add(map[x][y]); add(map[x][y]);
} }
//Steinboden //Steinboden
else { else if (x >= 6 && x <= 8 ) {
map[x][y] = new Tile(5, x, y); map[x][y] = new Tile(5, x, y);
add(map[x][y]); add(map[x][y]);
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 481 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 540 B

After

Width:  |  Height:  |  Size: 545 B