Skip to content

Commit

Permalink
Exported the rooms classes and callbacks for testing setting up the m…
Browse files Browse the repository at this point in the history
…ain player
  • Loading branch information
eHag-FRU committed Apr 14, 2024
1 parent 41b030c commit cb38f3d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 0 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@


<script src="src/js/Screens.js"></script>

<script src="test/testPlayer.js"></script>



Expand Down
3 changes: 0 additions & 3 deletions sketch.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ let trapDoorImage;
let cellBarsImage;
let bullets;

//Testing
let testPlayer = setupPlayer();

//needs to be false when game is ready to play, is false for testing.
console.log("FIX THIS VALUE");
let ENEMY42SPAWED = true;
Expand Down
11 changes: 11 additions & 0 deletions src/js/Rooms.js
Original file line number Diff line number Diff line change
Expand Up @@ -1077,3 +1077,14 @@ class RoomController {
);
}
}




//Exports needed for testing
//Class exports
modules.exports = { RoomController, Room };

//Callbacks
modules.exports = { UpstairsDoorCallback, leftDoorCallback, rightDoorCallback, upDoorCallback, downDoorCallback,
trapDoorCallback, MiddleDoorCallback, requestIdleCallback, trapDoorBackCallback };

0 comments on commit cb38f3d

Please sign in to comment.