MiniGL

MiniGL is a minimal 2D Game Library, available as a Ruby gem, and built on top of the Gosu gem.

It provides the following features:

  • Resource management (images, sounds, ...)
  • Input manipulation (keyboard, mouse, ...)
  • UI (text, buttons, text fields, ...)
  • Basic physics and collision checking
  • Animated objects

More functionalities are coming. Feel free to contribute! You can send feedback to [email protected].

Installing

MiniGL was built on top of the Gosu gem. This gem has its own dependencies for compiling extensions. Visit this page for details.

After installing the gosu dependencies, you can just gem install minigl.

Please note:

  • The test package is not complete! Most of the functionality provided by the gem is difficult to test automatically, but you can check the examples provided with the gem.
  • The library is 100% RDoc-documented.
  • An auxiliary, tutorial-like documentation is under construction here.

Version 2.0.5

  • Further refined the ramp physics.
  • Flexibilized the move_free method with the possibility of passing an angle as argument, instead of a point.
  • Added on_changed event for the DropDownList control.
  • Adjusted draw in Sprite and GameObject so that, when drawing objects rotated or not rotated, the origin of the image is consistent.