I wrote my first little Ruby program last night.
It's called Space Kats.
I downloaded this library called gosu.
It helps you do 2d graphics in ruby.
http://www.libgosu.org/
Basically, if you have ruby installed, you can type "gem install gosu" at your command prompt and it magically installs. I'm a big fan of magic like that.
Then I downloaded someone else's sample game (which I don't fully understand) and hacked it until I had my bouncing cats.
It taught me how to create an array of objects (the cat) and traverse the array with a for loop to operate on it (movie cat).
Video below.
No comments:
Post a Comment