mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
fixes for animations with head and jump, etc.
This commit is contained in:
parent
142964938c
commit
283a1ef48b
16 changed files with 147 additions and 109 deletions
|
|
@ -5,8 +5,11 @@ define([
|
|||
|
||||
function (Box2D, Exception) {
|
||||
|
||||
function GameObject(physicsEngine) {
|
||||
function GameObject(physicsEngine, uid) {
|
||||
this.uid = uid;
|
||||
|
||||
var def = this.getBodyDef();
|
||||
def.userData = this;
|
||||
this.body = physicsEngine.getWorld().CreateBody(def);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ define([
|
|||
|
||||
function (Parent, Box2D, Settings, CollisionDetector) {
|
||||
|
||||
function Tile(physicsEngine, options) {
|
||||
function Tile(physicsEngine, uid, options) {
|
||||
this.options = options;
|
||||
Parent.call(this, physicsEngine);
|
||||
Parent.call(this, physicsEngine, uid);
|
||||
this.createPhysicTile(this.options);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue