lib/traits/moveable.rb in gosu_extensions-0.1.14 vs lib/traits/moveable.rb in gosu_extensions-0.1.15
- old
+ new
@@ -1,9 +1,9 @@
# A moveable has a shape, speed etc.
#
# TODO moveable should only have active components, like accelerate etc. Positioning etc. should go to Thing.
#
-module Moveable
+module Moveable extend Trait
Accelerate = :accelerate
Left = :move_left
Right = :move_right
Up = :move_up
\ No newline at end of file