summaryrefslogtreecommitdiff
path: root/src/game/game.hpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-03-26 19:45:14 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-03-26 19:45:14 +0200
commit6105508ba02c2efadbb7901fff6b85beccafd39d (patch)
treedf3181d5e94001cab4176757ee8fb62e7bd8f8bb /src/game/game.hpp
parent1c1c32fc463110d515cd43d6f149053f26a2672f (diff)
Better effects.
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r--src/game/game.hpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp
index 8486412..c2bc58d 100644
--- a/src/game/game.hpp
+++ b/src/game/game.hpp
@@ -68,7 +68,7 @@ namespace game {
} nest_assets_t;
typedef struct {
- render::animated_texture_t blood;
+ render::animated_texture_t blood, flash;
} fx_assets_t;
typedef struct {
@@ -308,6 +308,17 @@ namespace game {
void render_to(render::state_t *render);
};
+ class fx_flash_t : public effect_t {
+ v2f_t x;
+ float radius;
+
+ public:
+ fx_flash_t(game::state_t *game_, v2f_t x_, float radius_);
+ ~fx_flash_t(void) {};
+
+ void render_to(render::state_t *render);
+ };
+
class fx_blood_t : public effect_t {
bool alien;
v2f_t x;