static void logic(void) { handleKeyboard(); scrollBackground(0, 0.25); doStars(0, -0.5); earth.y += 0.1; if (earth.y > SCREEN_HEIGHT + 128) { earth.x = rand() % SCREEN_WIDTH; earth.y = -(128 + (rand() % 128)); } doFighters(); doEffects(); app.doTrophyAlerts = 1; if (show == SHOW_FIGHTER_DB) { doFighterDatabase(); } doWidgets(); }
static void logic(void) { handleKeyboard(); scrollBackground(0, 0.25); doStars(0, -0.5); earth.y += 0.1; if (earth.y > SCREEN_HEIGHT + 128) { earth.x = rand() % SCREEN_WIDTH; earth.y = -(128 + (rand() % 128)); } doFighters(); doEffects(); doWidgets(); }