Utility Classes and Modules Wide
Game Framework for RubyCocoa > Utility Classes and Modules

Utility classes and modules for Views

BGM class

eases playing music loops without a little gap between loops by using QTMovie. See BGM class reference.

SimpleSpeech module

provides speech capability. This module uses Speech Synthesizer to speak a given text string. See SimpleSpeech module reference.

ShadowMaker module

eases making drop shadows beneath drawing objects in the window. See ShadowMaker module reference. Though drawing shadow makes your game look richer, it might become a performance bottleneck. Be aware when you make a performance-aware game.

TextMaker module

eases drawing a text string by using the default font. See TextMaker module reference.

Utility classes for Views and Models

Field class

eases to calculate the points and size for the characters in a Model. Even though a Model doesn’t draw anything on the window, it must set the position of the characters in a game. Therefore, this class provides the size of the window without accessing View classes.

It provides a method bounds that returns an NSRect object. There are some more useful methods that help both Models and Views to calculate the position of an drawing object. See Field class reference for more information.

Leave a comment

Begin the comment with //pukiwiki if you want to write a comment in PukiWiki format.

You must be logged in to post a comment.