[Maintenance] [th01] Use a single header file for bomb declarations

Part of P0159, funded by Yanga.
This commit is contained in:
nmlgc 2021-09-12 16:04:24 +02:00
parent 31d7f166b9
commit 0d497452ef
3 changed files with 9 additions and 8 deletions

View File

@ -1,6 +0,0 @@
// Current frame within the BOMB_DOUBLETAP_WINDOW. A bomb is fired if both
// shot and strike keys are double-tapped before this variable reaches that
// window.
extern int bomb_doubletap_frames;
#define BOMB_DOUBLETAP_WINDOW 20

View File

@ -1,6 +1,13 @@
#define BOMB_DOUBLETAP_WINDOW 20
// Current frame within the BOMB_DOUBLETAP_WINDOW. A bomb is fired if both
// shot and strike keys are double-tapped before this variable reaches that
// window.
extern int bomb_doubletap_frames;
// Indicates whether a bomb is active and dealing damage to everything on
// screen.
bool bomb_damaging;
extern bool bomb_damaging;
// Renders the given [frame] of the bomb animation, and applies any
// frame-specific game state modifications. Returns false if the animation is

View File

@ -16,8 +16,8 @@ extern "C" {
#include "twobyte.h"
#include "th01/hardware/frmdelay.h"
#include "th01/hardware/input.hpp"
#include "th01/main/bomb.hpp"
#include "th01/main/debug.hpp"
#include "th01/main/player/bomb.hpp"
extern const char esc_cls[];