Made some methods const.
Started on separating game drawing from update logic.
Added keepPlayerOnPlatform().
Separated non-drawing logic for drawing player and enemies.
Changed GL prefix to a namespace.
Cleaned up game structs.
Separated non-drawing logic for lightning.
Replaced short with int and TRUE/FALSE with true/false.
Added lightning to resetPlayer().
Replaced some pointer arguments to references.
Set OS X window title.
Added experimental CVDisplayLink code for OS X.
Added a mutex.
Improved game loop for smoother animations.
On OS X preload multiple sound instances to improve frame rate.
Removed NSTimer code.