mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 18:47:35 +00:00
added Constants module. fixes #4
This commit is contained in:
parent
f3e186afb1
commit
3c1e7008e5
4 changed files with 29 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
|||
define(["Chuck/Settings", "Vendor/Box2D"], function(Settings, Box2D) {
|
||||
define(["Chuck/Settings", "Chuck/Constants", "Vendor/Box2D"], function(Settings, Constants, Box2D) {
|
||||
|
||||
// Public
|
||||
function Level(path, engine) {
|
||||
|
|
@ -50,7 +50,7 @@ define(["Chuck/Settings", "Vendor/Box2D"], function(Settings, Box2D) {
|
|||
fixtureDef.friction = Settings.TILE_FRICTION;
|
||||
fixtureDef.restitution = Settings.TILE_RESTITUTION;
|
||||
fixtureDef.isSensor = false;
|
||||
fixtureDef.userData = 'tile';
|
||||
fixtureDef.userData = Constants.COLLISION_IDENTIFIER_TILE;
|
||||
|
||||
this.engine.createBody(bodyDef).CreateFixture(fixtureDef);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue