From 0b338bbd007048551526ab4fa4130d53b414e650 Mon Sep 17 00:00:00 2001 From: jacopo grandi Date: Wed, 24 Feb 2021 16:38:42 +0100 Subject: fire and movement animations --- gst/fxs.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 gst/fxs.h (limited to 'gst/fxs.h') diff --git a/gst/fxs.h b/gst/fxs.h new file mode 100644 index 0000000..1efe97a --- /dev/null +++ b/gst/fxs.h @@ -0,0 +1,25 @@ +#ifndef FXS_H +#define FXS_H + +#include + +typedef struct { + float from[2]; + float to[2]; + float starttime; + float endtime; + float size; + int color[3]; +} bullet; + +typedef struct { + bullet *bullets; + int bulletslen; +} fxs; + +void fx_init (fxs *fx); +void fx_add_bullet (fxs *fx, bullet *b); +void fx_process (fxs *fx, float time); +void fx_render (SDL_Renderer *rend, fxs *fx, float cam[], float time); + +#endif \ No newline at end of file -- cgit v1.2.3-54-g00ecf