"MiniKidsGames" is an open-source game for kids, which is mostly written in Ruby with the power of RubyCocoa. The games in this application run on the game framework that helps you develop a new simple game in a short time. Actually I made these games in a few days (most of the time is spent for drawing images and composing music by the way).
The game framework is written in ruby, with some Objective-C code that helps you to use non-Objective-C functions on Mac OS X. It is intended to hide many hard work from developers, which includes:
- switching screen mode
- accessing property lists for preferences
- playing sound loops
- making shadows underneath drawing objects
- checking multiple key status
- centering objects
- choosing a color that is different from the previous one.
- choosing a random point that doesn't overlap the previous object
- and lots more...
The framework also includes a simple game template that is based on MVC pattern. The template itself can work as a game (that does nothing). All you have to do is to copy it, rename classes, and write whatever you want.
See Game Framework for RubyCocoa and Mini Game Tutorial for more information.
Checking out source files from subversion repository
See How to check out source files from svn repository
Development Environment
- Mac OS 10.4 or later
- Xcode 2.3 or later
- Ruby 1.6.4 or later on Panther / 1.8 or lather on Tiger
To compile it for Mac OS 10.3.x (Panther) on Xcode 2.3/2.4, you have to choose /Developer/SDKs/Mac OS10.3sdk from the menu "Project" -> "Edit Project Settings."
For Intel Macs, you need to download the RubyCocoa 0.4.3d2 universal binary package from the RubyCocoa download page.
Unfortunately, I don't have any Xcode project files for Xcode 2.1 or earlier that run on Mac OS 10.3.x. To compile this on Panther, create a new project named "MiniKidsGames" as RubyCocoa Application. Then, copy all the files in the source package into the project directory. Finally, add all files into your project. Here lists the groups in the Xcode 2.3 project.
- Licenses
- *.txt
- Classes/ruby
- *.rb (other than rb_main.rb)
- Classes/objc
- *.[mh] (other than main.m)
- Other Sources
- rb_main.rb, main.m
- Resources
- *.icns, *.tiff, *.m4a, *.aif, Info.plist, InfoPlist.strings, MainMenu.nib
- Frameworks/Linked Frameworks
- RubyCocoa.framework, Cocoa.framework
- Frameworks/Other Frameworks
- Carbon.framework, QTKit.framework, ApplicationServices.framework, Foundation.framework, AppKit.framework







