Code part 1. Here we allocate variables call a function to create the player sprite, and enter the main game loop. I do have a few extras in there to give us time based movement so things run the same on old vs new 3ds. Although that really shouldn't be a problem for this example. CALL SPRITE calls all the registered sprite functions.