Gosu is a 2D game development library for Ruby and C++.
It is available for macOS, Windows, Linux, and iOS.
Gosu is focused, lightweight, and has few dependencies (mostly SDL 2). It provides:
- a window and a main loop
- 2D graphics and text, powered by OpenGL or OpenGL ES
- sounds and music
- keyboard, mouse, and gamepad input
Gosu is mostly used to teach or learn Ruby or in short game development competitions.
Two games built with Ruby/Gosu have been published on Steam: Super Bombinhas and Bloopy & Droopy.
Resources
In addition to the documentation linked from the sidebar, there are a few videos about Gosu on YouTube.
Licensing
Gosu and all documentation © 2001-2026 Julian Raschke, Jan Lücker, and other contributors. Gosu is released under the MIT licence.