(game: Game)
| 13 | |
| 14 | // Constructor |
| 15 | constructor(game: Game){ |
| 16 | super(game); |
| 17 | |
| 18 | // Resize the quest |
| 19 | this.resizeQuest(294, this.groundYPosition + 2); |
| 20 | |
| 21 | // Add collision boxes around |
| 22 | this.addPlayerCollisionBoxes(true, false, true, true); |
| 23 | |
| 24 | // Add the player |
| 25 | this.getGame().getPlayer().loadCandyBoxCharacter(this); |
| 26 | this.getGame().getPlayer().setGlobalPosition(new Pos(0, this.groundYPosition)); |
| 27 | this.configPlayerOrClone(this.getGame().getPlayer()); |
| 28 | this.addEntity(this.getGame().getPlayer()); |
| 29 | |
| 30 | // Add the ground |
| 31 | this.addGround(); |
| 32 | |
| 33 | // We add some wolves |
| 34 | for(var i = 0; i < 10; i++){ |
| 35 | this.addWolf(Random.between(80, 280)); |
| 36 | } |
| 37 | |
| 38 | // Add the message |
| 39 | this.getGame().getQuestLog().addMessage(new QuestLogMessage("You enter the forest.")); |
| 40 | } |
| 41 | |
| 42 | // Public methods |
| 43 | public castPlayerTeleport(): void{ |
nothing calls this directly
no test coverage detected