Tag Archives: code

Feb 01
2012

Intro to MacRuby and converting a project from RubyCocoa to Macruby

Since my last post here, I’ve started working at a software start-up. Its product is a platform for educational iOS apps. As a result, I’ve gained a decent familiarity with objective C and Cocoa. I haven’t had a chance to … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment
Mar 11
2011

A bug with for…in vs for

This is possibly the weirdest bug I’ve ever seen. My flash program was working fine from within the debugger and from Adobe’s swf player built into Flash CS5. However, when I put the swf into a web page, I got … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment
Jan 16
2011

Rotating blocks

As far as I know, rotation in all the classic block games such as Tetris or Blockout was done in about the same way– by storing an array of values for each of a block’s possible states. For example, a … Continue reading

Posted in Uncategorized | Tagged , , , | 2 Comments
Jan 10
2011

Making a grid for a block game

I ran into some problems with handling the block sprites. I was basically just using the same built-in .x and .y properties built into flash sprites and adding some number to currentBlock.y in the event loop for gravity, and either … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment