Compilation of video game logic