Writing 2D games for the OSX platform in Ruby
summary
Builds a simple 2D Mac game in Mac Ruby, using Core Animation layers as sprites and an NSTimer at 0.03s (~30Hz) for the game loop, checks collisions by calling CGRectIntersectsRect, stores game state in a central module, ships scalable PDF assets and system sounds, compiles Ruby sources into .rbo with micr_deploy and embeds Mac Ruby for distribution, and reports runtime CPU around 3–15%.
AI-written summary · about








