Full JS rendering example.
This commit is contained in:
@ -8,7 +8,7 @@ type Time = {
|
||||
|
||||
export class Game {
|
||||
public time:Time;
|
||||
private scene:Scene|null;
|
||||
public scene:Scene|null;
|
||||
|
||||
constructor() {
|
||||
this.time = { delta: 0, current: 0, last: 0 };
|
||||
@ -53,9 +53,8 @@ export const gameSetMain = (game:Game) => {
|
||||
* Method that is invoked by C when the game needs to intialize.
|
||||
*/
|
||||
const init = () => {
|
||||
print("init");
|
||||
// if(!GAME_MAIN) return;
|
||||
// GAME_MAIN.init();
|
||||
if(!GAME_MAIN) return;
|
||||
GAME_MAIN.init();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user