lib/lotu/actor.rb in lotu-0.1.0 vs lib/lotu/actor.rb in lotu-0.1.1

- old
+ new

@@ -13,11 +13,17 @@ # Initialize the behaviors included in subclasses init_behavior end + # Easy access to delta-time def dt $window.dt + end + + # Remove ourselves from the update queue + def die + @parent.update_queue.delete(self) end # Meant to be overriden by behaviors def init_behavior;end def update;end