mirror of https://github.com/nmlgc/ReC98.git
[Maintenance] [th01] Use a single header file for bomb declarations
Part of P0159, funded by Yanga.
This commit is contained in:
parent
31d7f166b9
commit
0d497452ef
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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[];
|
||||
|
||||
|
|
Loading…
Reference in New Issue