gfx, shit

This commit is contained in:
t. boddy 2026-02-17 15:10:28 -05:00
parent 364a34ce33
commit 0151304d05
8 changed files with 140 additions and 33 deletions

View file

@ -28,28 +28,31 @@ void loadGame(){
loadPlayer();
loadChrome();
loadStage();
started = TRUE;
}
static void updateGame(){
updateChrome();
updatePlayer();
updateSfx();
if(clock % 2 == 0){
updateEnemies();
if(!gameOver && enemyCount == 0) gameOver = TRUE;
updateHumans();
} else {
updateBackground();
updateBullets();
if(!paused){
updatePlayer();
if(clock % 2 == 0){
updateEnemies();
if(!gameOver && enemyCount == 0) gameOver = TRUE;
updateHumans();
} else {
updateBackground();
updateBullets();
}
}
}
int main(bool hardReset){
loadInternals();
loadGame();
// loadStart();
loadStart();
while(1){
updateGame();
if(started) updateGame();
else updateStart();
clock++;
if(clock >= CLOCK_LIMIT) clock = 600;
SPR_update();