Gosuplus 1.0.26 → 1.0.261

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/Gosuplus/body.rb CHANGED
@@ -2,7 +2,7 @@ module Gosuplus
2
2
  class Body
3
3
  attr_accessor :position, :a, :width, :height
4
4
 
5
- def initialize(position, width, height, angle = 90)
5
+ def initialize(position, width, height, angle = 0)
6
6
  @position, @width, @height, @a = position, width, height, angle
7
7
  end
8
8
  end
@@ -3,8 +3,8 @@ module Gosuplus
3
3
  include DrawableRot
4
4
  attr_accessor :id, :body
5
5
 
6
- def initialize(pos, image)
7
- @body = Body.new(pos, image.width, image.height)
6
+ def initialize(pos, image, angle = 0)
7
+ @body = Body.new(pos, image.width, image.height, angle)
8
8
  @image = image
9
9
  end
10
10
 
@@ -27,7 +27,7 @@ module Gosuplus
27
27
  def previous
28
28
  @states[@index].on_exit
29
29
  @index -= 1
30
- @states[@index].on_load
30
+ @states[@index].on_load
31
31
  end
32
32
 
33
33
  def add(state)
@@ -1,3 +1,3 @@
1
1
  module Gosuplus
2
- VERSION = "1.0.26"
2
+ VERSION = "1.0.261"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Gosuplus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.26
4
+ version: 1.0.261
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: