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, sound effects, songs, tilesets, fonts)
- Input manipulation (keyboard, mouse, joystick)
- UI (text, buttons, text fields, drop-down lists, progress bars)
- Basic physics and collision checking
- Animated objects
More functionalities are coming. Feel free to contribute! You can send feedback to [email protected].
Made with MiniGL
Below are two full games built with MiniGL, both available for free download and also open source.
Super Bombinhas is also available on Steam.
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.
Documentation
- The library is 100% RDoc-documented here.
- The wiki is a work in progress with tutorials and examples.
- Test package and examples aren't complete!
Version 2.3.7
- Exposed the
Panel#controls,TextField#focusedandDropDownList#openproperties. - Fixed a bug when clicking overlapping buttons: only the click action of the button with highest z-index (or last updated if z-indexes are the same) will be triggered. WARNING: the click callback will only be executed if
Mouse.updateis called after the click happened. If you callMouse.updateevery frame (which is recommended), there's nothing to worry about.
Contributing
Contributions are very welcome. Feel free to fork and send pull requests. Also, you can support my work by donating bitcoins to this wallet: bc1qsp7mypdqvkt88xtnarmaytt0etxfccxr5pt5tk