Skip to content

Commit

Permalink
initialize the physics engine
Browse files Browse the repository at this point in the history
  • Loading branch information
namel committed Jul 17, 2017
1 parent 3fadcd8 commit 78e91bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/GameEngine.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ class GameEngine {
traceLevel: Trace.TRACE_NONE
}, options);

// get the physics engine and initialize it
if (this.options.physicsEngine) {
this.physicsEngine = this.options.physicsEngine;
this.physicsEngine.init({ gameEngine: this });
}

// set up event emitting and interface
let eventEmitter = new EventEmitter();

Expand Down

0 comments on commit 78e91bc

Please sign in to comment.