lib/units/thing.rb in gosu_extensions-0.2.9 vs lib/units/thing.rb in gosu_extensions-0.3.0
- old
+ new
@@ -12,10 +12,14 @@
end
def friction
100.0
end
+ def layer
+ Layer::Players
+ end
+
class << self
@@form_shape_class_mapping = {
:circle => CP::Shape::Circle, # :circle, radius
:poly => CP::Shape::Poly, # :poly, CP::Vec2.new(-22, -18), CP::Vec2.new(-22, -10), etc.
:segment => CP::Shape::Segment # :segment, ...
@@ -74,16 +78,10 @@
end
end
end
- # Unregister with the environment if destroyed.
- #
- def destroy!
- self.window.unregister self if super
- end
-
# Add this thing to an environment.
#
# Note: Adds the body and the shape.
#
def add_to environment
@@ -91,9 +89,10 @@
environment.add_shape self.shape
end
# Movement and Position
#
+ def move;end
#
#
def speed= v
@shape.body.v = v
\ No newline at end of file