forked from ippa/chingu
-
Notifications
You must be signed in to change notification settings - Fork 0
Home
russplaysguitar edited this page Oct 5, 2011
·
10 revisions
Chingu is a game development framework for Ruby. It is an extension of the Gosu framework. Chingu is distributed to the world as a Ruby gem.
Russ S. (russplaysguitar)
- RVM (recommended)
- Ruby 1.8.7 or 1.9.2
- Gosu
- Rake
- Check RVM dependencies:
for name in {bash,awk,sed,grep,ls,cp,tar,curl,gunzip,bunzip2,git,svn} ; do which $name ; done
- Install RVM: https://rvm.beginrescueend.com/rvm/install/
- Install Ruby 1.8.7 using RVM:
rvm install 1.8.7
(1.9.2 is OK too) - Install Gosu dependencies:
sudo apt-get install g++ libgl1-mesa-dev libpango1.0-dev libboost-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsndfile1-dev
- Create an rvm gemset for chingu:
rvm --create use @chingu
- Install Gosu:
gem install gosu
- Install Rake:
gem install rake
- Download Chingu:
git clone git@github.com:ChicoTeam/chingu.git
- Build Chingu. From within /chingu/ :
gem build chingu.gemspec
- Install Chingu:
gem install chingu-0.9rc7.gem
Chingu is now installed as a Ruby Gem on your system, which can be accessed from within any Ruby file. Simply include the following at the beginning of your Ruby files:
require 'rubygems'
require 'chingu'
include Gosu
- Basic examples here: chingu/examples/
- Game demos:
- chingu/examples/game1.rb (requires texplay gem)
- chingu/examples/game_of_life.rb
Found in chingu/spec/ . Built using rspec: http://rspec.info/documentation/
- Chingu: http://ippa.se/chingu