Star Ruby Ruby extension library for creating 2D games

About

Agile 2D game development using

Agile 2D game development using Ruby

Ruby

Star Ruby enables users to use Ruby to develop SNES-like (Super Nintendo Entertainment System) 2D game quickly and easily.

Star Ruby's APIs are simple and easy to learn.

Rich rendering effect

rendering effect

Color changing effects such as subtraction, addition, saturation and hue are supported. Needless to say, geometrical transformation such as scaling and rotating are also supported.

Perspective projection rendering

Perspective projection rendering

Star Ruby can easily handle perspective projection which was used by SNES games (Mario cart, F-ZERO, FF6 etc.). This is a unique feature that is not present in most other 2D game libraries.

Textures

Texture

Star Ruby regards objects related to the rendering process as "Textures". For example, PNG images, output screen and buffers are all regarded as "Textures" in Star Ruby. So what all you have to do is always "render Texture on Texture". You can choose rendering options such as alpha blending when you render "Textures".

All "Textures" are full-color 32-bit bitmaps with 8-bit alpha. You can also output textures as PNG images.

Text output

Text output

By using TTF files, you can render text on "Textures". You can also choose anti-alising as an option.

Free resolution

The resolution of the screen can be adjusted freely.

You can also double the size of the screen while keeping the resolution of it.

Input

入力

Keyboard, gamepad and mouse can be used as default inputs.

Key-repeat is supported.

Sound

OGG and WAV formats are supported.

High-performance

Star Ruby is written by C, therefore it can render efficiently even without the use any graphic accelerators. It's performance rate is suitable for programming 2D games.

Cross-platform

Star Ruby runs on Windows, Linux and Mac OS X.

Combinations with other libraries

Each class is designed so that they can be used independently.

For example, you can render Star Ruby textures on the window of Ruby-GNOME2.

Open source

MIT License.

© Copyright 2010 Hajime Hoshi