From 9c6276096abaddb19f8f4f5327ef0ee233fd1732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20R=C3=BCmpelein?= Date: Thu, 25 Sep 2014 15:29:37 +0200 Subject: [PATCH] Removed HitBox-DBG --- src/jsds_crafty.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/jsds_crafty.js b/src/jsds_crafty.js index fad6d0c..e3ae1d5 100644 --- a/src/jsds_crafty.js +++ b/src/jsds_crafty.js @@ -1,8 +1,11 @@ { + // For Hitbox-Dbg: Add WiredHitBox to Components of the corresponding objects, + // and uncomment the section in + Crafty.c( "Wall", { init: function() { - this.addComponent("2D,Canvas,Color,Collision,WiredHitBox,wall,coll") + this.addComponent("2D,Canvas,Color,Collision,wall,coll") .color('black'); }, wall: function(x,y,w,h) { @@ -44,7 +47,7 @@ Crafty.c( "Creature", { init: function() { - this.addComponent("Thing,Fourway,Draggable,Collision,WiredHitBox,Mouse,creature,coll"); + this.addComponent("Thing,Fourway,Draggable,Collision,Mouse,creature,coll"); }, creature: function(id,x,y,w,h,col) { this.id=id || "";