forked from rubygame/rubygame
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- releases/1.1.0: Tag code for 1.1.0 release. (OpenGL support)
- Loading branch information
Showing
4 changed files
with
124 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
= Getting Started with rubygame | ||
|
||
== About rubygame | ||
|
||
Rubygame is a combination extension and library for the Ruby language, | ||
designed for creating computer games, and having fun creating them. | ||
As an extension, it provides an interface to the Simple DirectMedia Library | ||
(SDL) and its companion libraries SDL_gfx, SDL_image, and SDL_ttf. | ||
As a Ruby library, it provides classes/modules which implement some useful | ||
concepts such as Sprites, Event Queues, and rasterized fonts (SFont). | ||
However, at this time, rubygame has no support for loading or playing sound of | ||
any kind. There has to be *something* to look forward to, doesn't there? | ||
|
||
== Suggested Reading | ||
|
||
To get acquainted with rubygame, first take a look at the fundamental | ||
classes: | ||
- Rubygame::Screen | ||
- Rubygame::Surface | ||
- Rubygame::Rect | ||
|
||
As a next step, read about the event Queue and the hardware events, which | ||
allow you to take keyboard and mouse input, among other things. The most | ||
commonly used ones are: | ||
- Rubygame::JoyAxisEvent | ||
- Rubygame::JoyBallEvent | ||
- Rubygame::JoyDownEvent | ||
- Rubygame::JoyHatEvent | ||
- Rubygame::JoyUpEvent | ||
- Rubygame::KeyDownEvent | ||
- Rubygame::KeyUpEvent | ||
- Rubygame::MouseDownEvent | ||
- Rubygame::MouseMotionEvent | ||
- Rubygame::MouseUpEvent | ||
- Rubygame::QuitEvent | ||
|
||
You will also want to acquaint yourself with these more minor event types: | ||
- Rubygame::ActiveEvent | ||
- Rubygame::ResizeEvent | ||
- Rubygame::ExposeEvent | ||
|
||
Finally, familiarize yourself with: | ||
- Rubygame::TTF and Rubygame::SFont classes for rendering text | ||
- Rubygame::Image module for loading and saving image files | ||
- Rubygame::Draw and Rubygame::Transform modules for "special effects" | ||
- Rubygame::Time module for controlling framerate and pausing program execution | ||
- Rubygame::Sprites module for easy-to-use, yet highly flexible on-screen objects | ||
- Rubygame::GL module for hardware-accelerated 3D graphics with OpenGL. | ||
|
||
There are several sample applications in the rubygame/samples/ directory | ||
packaged with Rubygame which can also help you get started. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters