enemy spawning etc
This commit is contained in:
parent
b2c0eaf30b
commit
11547e9d13
6 changed files with 109 additions and 54 deletions
10
src/main.c
10
src/main.c
|
|
@ -8,6 +8,7 @@
|
|||
#include "player.h"
|
||||
#include "stage.h"
|
||||
#include "chrome.h"
|
||||
#include "start.h"
|
||||
|
||||
static void loadInternals(){
|
||||
JOY_init();
|
||||
|
|
@ -29,10 +30,13 @@ void loadGame(){
|
|||
|
||||
static void updateGame(){
|
||||
updateChrome();
|
||||
updateBackground();
|
||||
updateEnemies();
|
||||
updatePlayer();
|
||||
updateBullets();
|
||||
if(clock % 2 == 0){
|
||||
updateEnemies();
|
||||
} else {
|
||||
updateBackground();
|
||||
updateBullets();
|
||||
}
|
||||
}
|
||||
|
||||
int main(bool hardReset){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue