silkz_classic.lv erstellt
[hackover2013-badge-firmware.git] / badge / jumpnrun / game_state.c
index 1fa1485..21bd809 100644 (file)
@@ -2,13 +2,14 @@
 
 void jumpnrun_game_state_init(jumpnrun_game_state *state, jumpnrun_level const *lv) {
   memset(state, 0, sizeof(*state));
-  jumpnrun_player_spawn(&state->player, lv->start_pos, 99);
+  jumpnrun_player_spawn(&state->player, lv->start_pos, lv->start_lives);
 }
 
 void jumpnrun_game_state_respawn(jumpnrun_game_state *state, jumpnrun_level const *lv) {
   jumpnrun_player_respawn(&state->player, lv->start_pos);
   state->flags = 0;
   state->screen_left = 0;
+  state->tick = 0;
   memset(state->shots, 0, sizeof(state->shots));
 
   for(size_t i = 0; i < lv->header.enemy_count; ++i) {
This page took 0.020935 seconds and 4 git commands to generate.