diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-12-15 18:07:16 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-12-15 18:07:16 +0100 |
commit | 4dd7ac29fe0132b9f5896a84ccfe8d05363dfa74 (patch) | |
tree | 4abbd9e3aa4403020d7ece46dc4736f67730e2eb /src/game/game.hpp | |
parent | cd9b7052f07291e3975bad5dcfe9ad0338c17e74 (diff) |
Add the blood effect (not yet finished).
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r-- | src/game/game.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp index 0a1d0ca..8949911 100644 --- a/src/game/game.hpp +++ b/src/game/game.hpp @@ -37,8 +37,13 @@ namespace game { render::animated_texture_t dead; } alien_assets_t; + typedef struct { + render::animated_texture_t blood; + } fx_assets_t; + extern human_assets_t human; extern alien_assets_t alien; + extern fx_assets_t fx; void load(void); } @@ -157,4 +162,13 @@ namespace game { fx_tracer_t(game::state_t *game_, v2f_t x0_, v2f_t x1_); void render_to(render::state_t *render); }; + + class fx_blood_t : public effect_t { + bool alien; + v2f_t x; + + public: + fx_blood_t(game::state_t *game_, v2f_t x_, bool alien_); + void render_to(render::state_t *render); + }; }; |