I noticed the other thread "trouble understanding the game loop" but couldnt understand what im stuck over in it.
So far i have two sections of code. "Start up" and "Vblank". Start up does all the initialization. Vblank runs update_sprite and respond_to_input.
update_sprite does a dma transfer
respond_to_input does everything to do with moving the ship around. It also makes a bullet appear in the location of the ship when A is pressed.
Im not sure where to put the code that makes the bullet go in a direction. It seems that while the screen is drawing the code could be making bullet calculations. How do i do that? Is there a third section of code?
So far i have two sections of code. "Start up" and "Vblank". Start up does all the initialization. Vblank runs update_sprite and respond_to_input.
update_sprite does a dma transfer
respond_to_input does everything to do with moving the ship around. It also makes a bullet appear in the location of the ship when A is pressed.
Im not sure where to put the code that makes the bullet go in a direction. It seems that while the screen is drawing the code could be making bullet calculations. How do i do that? Is there a third section of code?