Tuesday, February 17, 2015

GameLoop in Swift

I never realized that you're not supposed to use NSTimer because it doesn't line up with the frame rate. Who knew? Anyway, here's my GameLoop class (Swift). Note: it has to extend NSObject otherwise you get weird selector-not-found errors.

No comments: