Skip to content

Commit

Permalink
fixed lights
Browse files Browse the repository at this point in the history
  • Loading branch information
SamanthaSmith04 committed Oct 14, 2024
1 parent 7ad061f commit 989d488
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion create1.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
2 changes: 1 addition & 1 deletion create2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
2 changes: 1 addition & 1 deletion create3.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
8 changes: 4 additions & 4 deletions create4.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand All @@ -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");
}
Expand All @@ -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");
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion create5.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 989d488

Please sign in to comment.