lib/Gosuplus/entity.rb in Gosuplus-1.0.26 vs lib/Gosuplus/entity.rb in Gosuplus-1.0.261
- old
+ new
@@ -1,11 +1,11 @@
module Gosuplus
class Entity
include DrawableRot
attr_accessor :id, :body
- def initialize(pos, image)
- @body = Body.new(pos, image.width, image.height)
+ def initialize(pos, image, angle = 0)
+ @body = Body.new(pos, image.width, image.height, angle)
@image = image
end
def update; end
end
\ No newline at end of file