Some added classes for using Gosu. Updated to use Gosu 0.14.x.
Holds a set of (x, y) co-ordinates. Allows for offsetting and moving by another Point, a Size, or a pair of co-ordinates.
Holds a (width, height) size. Allows for inflation / deflation with another Size or a pair of dimensions.
Holds a position and size. Delegates movement and size change to its constituents.
Added #draw_rectangle which draws a simple rectangle specified with a Point and Size in one colour and #draw_simple_line which draws a line in a single colour.
Added #measure and #centred_in / #centered_in which measure a piece of text and centre it in a given Size respectively.
Add this line to your application's Gemfile:
gem 'gosu_enhanced'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install gosu_enhanced
- Fork it ( https://github.com/JulianNicholls/gosu_enhanced/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
I am not affiliated in any way to the authors of the Gosu Gem or libgosu.
Gosu and all documentation © 2001-2019 Julian Raschke, Jan Lücker, and other contributors. Gosu is released under the MIT license.