diff --git a/create1.js b/create1.js index 46e672f..e201483 100644 --- a/create1.js +++ b/create1.js @@ -45,7 +45,7 @@ function create1() { wall.create(j*40+20, i*40+20, "wallDS"); } else if (wallkind == 10){ - wallkind = Math.floor(Math.random() * (4 - 1 + 1) + 1); + wallkind = Math.floor(Math.random() * (5 - 1 + 1) + 1); if (wallkind == 1){ wall.create(j*40+20, i*40+20, "painting1"); } diff --git a/create2.js b/create2.js index 70d4237..af81e4b 100644 --- a/create2.js +++ b/create2.js @@ -42,7 +42,7 @@ function create2() { wall.create(j*40+20, i*40+20, "wallDS"); } else if (wallkind == 10){ - wallkind = Math.floor(Math.random() * (4 - 1 + 1) + 1); + wallkind = Math.floor(Math.random() * (5- 1 + 1) + 1); if (wallkind == 1){ wall.create(j*40+20, i*40+20, "painting1"); } diff --git a/create3.js b/create3.js index 56d277e..d7d40d5 100644 --- a/create3.js +++ b/create3.js @@ -43,7 +43,7 @@ function create3() { wall.create(j*40+20, i*40+20, "wallDS"); } else if (wallkind == 10){ - wallkind = Math.floor(Math.random() * (4 - 1 + 1) + 1); + wallkind = Math.floor(Math.random() * (5 - 1 + 1) + 1); if (wallkind == 1){ wall.create(j*40+20, i*40+20, "painting1"); } diff --git a/create4.js b/create4.js index 0404b11..ef2bb5f 100644 --- a/create4.js +++ b/create4.js @@ -37,7 +37,7 @@ function create4() { wall.create(j*40+20, i*40+20, "wallDS"); } else if (wallkind == 10){ - wallkind = Math.floor(Math.random() * (4 - 1 + 1) + 1); + wallkind = Math.floor(Math.random() * (5 - 1 + 1) + 1); if (wallkind == 1){ wall.create(j*40+20, i*40+20, "painting1"); } @@ -50,6 +50,9 @@ function create4() { else if (wallkind == 4){ wall.create(j*40+20, i*40+20, "painting4"); } + else if (wallkind == 5){ + wall.create(j*40+20, i*40+20, "wall_light"); + } } //wall.create(j*40+20,i*40+20, "wall"); } @@ -64,9 +67,6 @@ function create4() { else if(arr4[i][j]==4){ jewel = this.physics.add.sprite(j*40+20,i*40+20, "jewel").setScale(0.125); } - else if (wallkind == 5){ - wall.create(j*40+20, i*40+20, "wall_light"); - } } } diff --git a/create5.js b/create5.js index ce2d217..c684e83 100644 --- a/create5.js +++ b/create5.js @@ -42,7 +42,7 @@ function create5() { wall.create(j*40+20, i*40+20, "wallDS"); } else if (wallkind == 10){ - wallkind = Math.floor(Math.random() * (4 - 1 + 1) + 1); + wallkind = Math.floor(Math.random() * (5 - 1 + 1) + 1); if (wallkind == 1){ wall.create(j*40+20, i*40+20, "painting1"); }