Skip to content

Commit cfed6e9

Browse files
committed
attempt fix of zombie npc in lvl6 intro room
1 parent 7a49576 commit cfed6e9

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

assets/js/mansionGame/mansionLevel6.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ class MansionLevel6 {
5050
keypress: {up: 87, left: 65, down: 83, right: 68} // W, A, S, D
5151
};
5252

53-
54-
/*
53+
5554
// This is the data for the zombie NPC charecter
5655
const sprite_src_zombie_npc = path + "/images/gamify/zombieNpc.png";
5756
const sprite_greet_zombie_npc = "I heard the boss is waiting for you... enter if you dare.";
@@ -61,7 +60,7 @@ class MansionLevel6 {
6160
src: sprite_src_zombie_npc,
6261
SCALE_FACTOR: 9,
6362
ANIMATION_RATE: 100,
64-
pixels: {width: 3600, height: 1200},
63+
pixels: {width: 1200, height: 3600},
6564
INIT_POSITION: {x: (width / 2), y: (height / 2)},
6665
orientation: {rows: 1, columns: 3},
6766
left: {row: 0, start: 0, columns: 3},
@@ -91,7 +90,6 @@ class MansionLevel6 {
9190
}
9291

9392
}
94-
*/
9593

9694

9795
// invisible sprite for door collision that handles going to lv6 battle room
@@ -307,7 +305,7 @@ class MansionLevel6 {
307305
this.classes = [
308306
{class: GameEnvBackground, data: image_data_chamber},
309307
{class: Player, data: sprite_data_mc},
310-
// {class: Npc, data: sprite_data_zombie},
308+
{class: Npc, data: sprite_data_zombie},
311309
{class: Npc, data: sprite_data_bossdoor}
312310
];
313311

0 commit comments

Comments
 (0)