Skip to content

Commit

Permalink
Update CameraController.mod.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Aubrey Buchanan authored Jul 13, 2018
1 parent 735c93c commit 27b6b1d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ExampleMods/CameraController.mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,23 @@ export class ModMain {
roll_sensitivity_habit = 31;
rolls = 100;

/*
* The player input classes to monitor for camera controls.
*
*/
Player1: PlayerInput;
Player3: PlayerInput;


/*
* The ModMain.Init() function performs setup operations for a Temple-based mod. It executes prior to the
* ModMain.Run() function and is only executed once.
*/
Init(mem, u8, u16, u32) {
// Initialize player input detection for players 1 and 3.
this.Player1 = new PlayerInput(1, mem, u8, u16, u32);
this.Player3 = new PlayerInput(3, mem, u8, u16, u32);
// Initialize the game camera.
GameCamera.initialize(mem, u8, u16, u32);
}

Expand Down Expand Up @@ -99,4 +109,4 @@ export class ModMain {
// }
}

}
}

0 comments on commit 27b6b1d

Please sign in to comment.