static const float CRACKTIME = 0.3f;
static const float FALLTIME = 0.8f;
-SkullTile::SkullTile(const Reader& lisp)
- : MovingSprite(lisp, "images/objects/skull_tile/skull_tile.sprite", LAYER_TILES, COLGROUP_STATIC), hit(false), falling(false)
+SkullTile::SkullTile(const Reader& lisp) :
+ MovingSprite(lisp, "images/objects/skull_tile/skull_tile.sprite", LAYER_TILES, COLGROUP_STATIC),
+ physic(),
+ timer(),
+ hit(false),
+ falling(false)
{
}
Vector pos = get_pos();
// shaking
if(timer.get_timegone() > CRACKTIME) {
- pos.x += systemRandom.rand(-3, 3);
+ pos.x += graphicsRandom.rand(-3, 3);
}
sprite->draw(context, pos, layer);
hit = false;
}
-IMPLEMENT_FACTORY(SkullTile, "skull_tile");
-
/* EOF */