Skip to content
Snippets Groups Projects
Commit 64888356 authored by Scherbaum Maximilian's avatar Scherbaum Maximilian
Browse files

update: GameSceneController.java add test map

parent d621c354
No related branches found
No related tags found
6 merge requests!74V1,!73Initial commit,!71Merge DataBase into Development,!27Player can now place bombs that have a explosion radius that dont go through the wall.,!24Player can now place bombs that have a explosion radius that dont go through the wall.,!22Gameplay update
...@@ -49,7 +49,7 @@ public class GameSceneController implements Initializable { ...@@ -49,7 +49,7 @@ public class GameSceneController implements Initializable {
//map data //map data
String mapString = "4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 " + /*String mapString = "4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 " +
"4 1 9 1 9 1 9 1 9 1 9 1 9 1 9 1 9 3 " + "4 1 9 1 9 1 9 1 9 1 9 1 9 1 9 1 9 3 " +
"4 9 10 9 10 9 10 9 10 9 10 9 10 9 10 9 10 3 " + "4 9 10 9 10 9 10 9 10 9 10 9 10 9 10 9 10 3 " +
"4 1 9 1 9 1 9 1 9 1 9 1 9 1 9 1 9 3 " + "4 1 9 1 9 1 9 1 9 1 9 1 9 1 9 1 9 3 " +
...@@ -67,6 +67,26 @@ public class GameSceneController implements Initializable { ...@@ -67,6 +67,26 @@ public class GameSceneController implements Initializable {
"4 1 9 1 9 1 9 1 9 1 9 1 9 1 9 1 9 3 " + "4 1 9 1 9 1 9 1 9 1 9 1 9 1 9 1 9 3 " +
"4 9 10 9 10 9 10 9 10 9 10 9 10 9 10 9 10 3 " + "4 9 10 9 10 9 10 9 10 9 10 9 10 9 10 9 10 3 " +
"4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 "; "4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ";
*/
String mapString = "10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 " +
"10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 " +
"10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 " +
"10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 " +
"10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 " +
"10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 " +
"10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 " +
"10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 " +
"10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 " +
"10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 " +
"10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 " +
"10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 " +
"10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 " +
"10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 " +
"10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 " +
"10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 " +
"10 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 " +
"10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10";
int horizontalTileCount = 18; int horizontalTileCount = 18;
int verticalTileCount = 18; int verticalTileCount = 18;
......
...@@ -57,7 +57,7 @@ public class TileManager { ...@@ -57,7 +57,7 @@ public class TileManager {
new Image(Objects.requireNonNull(getClass().getResourceAsStream("/textures/map/NoTexture.png")))); new Image(Objects.requireNonNull(getClass().getResourceAsStream("/textures/map/NoTexture.png"))));
tileSet[9] = TileFactory.createTile(TileType.WALKABLE, TileType.NON_DESTRUCTIBLE, tileSet[9] = TileFactory.createTile(TileType.WALKABLE, TileType.NON_DESTRUCTIBLE,
new Image(Objects.requireNonNull(getClass().getResourceAsStream("/textures/map/NoTexture.png")))); new Image(Objects.requireNonNull(getClass().getResourceAsStream("/textures/map/NoTexture.png"))));
//Textures of solid tiles //Textures of solid tiles + non destructible
tileSet[10] = TileFactory.createTile(TileType.NON_WALKABLE,TileType.NON_DESTRUCTIBLE, tileSet[10] = TileFactory.createTile(TileType.NON_WALKABLE,TileType.NON_DESTRUCTIBLE,
new Image(Objects.requireNonNull(getClass().getResourceAsStream("/textures/map/grass_biom/building/StoneGrassLand00.png")))); new Image(Objects.requireNonNull(getClass().getResourceAsStream("/textures/map/grass_biom/building/StoneGrassLand00.png"))));
tileSet[11] = TileFactory.createTile(TileType.NON_WALKABLE,TileType.NON_DESTRUCTIBLE, tileSet[11] = TileFactory.createTile(TileType.NON_WALKABLE,TileType.NON_DESTRUCTIBLE,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment