Sha256: 2bb106e2334979c4c950a08407467d641e40fcf04683342d7eaaab434cd18fb6

Contents?: true

Size: 230 Bytes

Versions: 18

Compression:

Stored size: 230 Bytes

Contents

module Gosuplus
  module Essentials
    def center(area)
      @body.position = Vec2.new(area.body.position.x + area.body.width/2 - @body.width/2, area.body.position.y + area.body.height/2 - @body.height/2)
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
Gosuplus-1.0.261 lib/Gosuplus/essentials.rb
Gosuplus-1.0.26 lib/Gosuplus/essentials.rb
Gosuplus-1.0.25 lib/Gosuplus/essentials.rb
Gosuplus-1.0.24 lib/Gosuplus/essentials.rb
Gosuplus-1.0.23 lib/Gosuplus/essentials.rb
Gosuplus-1.0.22 lib/Gosuplus/essentials.rb
Gosuplus-1.0.21 lib/Gosuplus/essentials.rb
Gosuplus-1.0.20 lib/Gosuplus/essentials.rb
Gosuplus-1.0.19 lib/Gosuplus/essentials.rb
Gosuplus-1.0.18 lib/Gosuplus/essentials.rb
Gosuplus-1.0.17 lib/Gosuplus/essentials.rb
Gosuplus-1.0.16 lib/Gosuplus/essentials.rb
Gosuplus-1.0.15 lib/Gosuplus/essentials.rb
Gosuplus-1.0.14 lib/Gosuplus/essentials.rb
Gosuplus-1.0.13 lib/Gosuplus/essentials.rb
Gosuplus-1.0.12 lib/Gosuplus/essentials.rb
Gosuplus-1.0.11 lib/Gosuplus/essentials.rb
Gosuplus-1.0.1 lib/Gosuplus/essentials.rb