Hey folks,
I'm trying to get my head around the run_game_loop function in V 4.2.4. It contains 3 instances of this code:
Two of these instances happen before player energy is incremented by
I don't understand what cases these are covering, and how the player would still have energy.
I'm trying to get my head around the run_game_loop function in V 4.2.4. It contains 3 instances of this code:
Code:
/* Keep processing the player until they use some energy or * another command is needed */ while (player->upkeep->playing) { process_player(); if (player->upkeep->energy_use) break; else return; }
Code:
player->energy += turn_energy(player->state.speed);
Comment