Bow mechanics added, documentation updated.
This commit is contained in:
@@ -110,6 +110,10 @@ void stop_active_sounds() {
|
||||
p.destroy_sound(sling_sound_handle);
|
||||
sling_sound_handle = -1;
|
||||
}
|
||||
if (bow_shot_sound_handle != -1) {
|
||||
p.destroy_sound(bow_shot_sound_handle);
|
||||
bow_shot_sound_handle = -1;
|
||||
}
|
||||
stop_all_weather_sounds();
|
||||
}
|
||||
|
||||
@@ -164,6 +168,16 @@ void reset_game_state() {
|
||||
climb_target_y = 0;
|
||||
fall_start_y = 0;
|
||||
sling_charging = false;
|
||||
bow_drawing = false;
|
||||
bow_shot_active = false;
|
||||
bow_shot_start_x = 0;
|
||||
bow_shot_end_x = 0;
|
||||
bow_shot_hit_x = -1;
|
||||
bow_shot_hit_type = 0;
|
||||
bow_shot_duration_ms = 0;
|
||||
bow_shot_sound_handle = -1;
|
||||
bow_shot_drop_pending = false;
|
||||
bow_shot_drop_pos = -1;
|
||||
searching = false;
|
||||
rope_climbing = false;
|
||||
rope_climb_up = true;
|
||||
@@ -256,6 +270,8 @@ void reset_game_state() {
|
||||
fire_damage_timer.restart();
|
||||
healing_timer.restart();
|
||||
sling_charge_timer.restart();
|
||||
bow_draw_timer.restart();
|
||||
bow_shot_timer.restart();
|
||||
fall_timer.restart();
|
||||
climb_timer.restart();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user