Removed HitBox-DBG
This commit is contained in:
parent
a9c7f04230
commit
9c6276096a
1 changed files with 5 additions and 2 deletions
|
@ -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 || "";
|
||||
|
|
Loading…
Reference in a new issue