-static const float CRACKTIME = 0.3;
-static const float FALLTIME = 0.8;
-
-UnstableTile::UnstableTile(const lisp::Lisp& lisp)
- : hit(false), falling(false)
-{
- lisp.get("x", bbox.p1.x);
- lisp.get("y", bbox.p1.y);
- bbox.set_size(32, 32);
- sprite = sprite_manager->create("unstable_tile");
- flags |= FLAG_SOLID;
-}
-
-UnstableTile::~UnstableTile()
+UnstableTile::UnstableTile(const Reader& lisp) :
+ MovingSprite(lisp, LAYER_TILES, COLGROUP_STATIC),
+ physic(),
+ state(STATE_NORMAL)