Skip to content

Commit

Permalink
added lights
Browse files Browse the repository at this point in the history
  • Loading branch information
SamanthaSmith04 committed Oct 8, 2024
1 parent acc2639 commit d8881c8
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions create1.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ function create1() {
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 Down
3 changes: 3 additions & 0 deletions create2.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ function create2() {
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 Down
3 changes: 3 additions & 0 deletions create3.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ function create3() {
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 Down
3 changes: 3 additions & 0 deletions create4.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ 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
3 changes: 3 additions & 0 deletions create5.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ function create5() {
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 Down
1 change: 1 addition & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ function preload() {
this.load.image("blueT", "assets/tileBlue.png");
this.load.image("whiteT", "assets/tileWhite.png");
this.load.image("wall", "assets/WallBox.png");
this.load.image("wall_light", "assets/WallBoxLight.png");
this.load.image("wallS", "assets/WallBoxSlash.png");
this.load.image("wallSR", "assets/WallBoxSlashReverse.png");
this.load.image("wallDS", "assets/WallBoxDoubleSlash.png");
Expand Down

0 comments on commit d8881c8

Please sign in to comment.