Game programming tricks of the trade