From e51044a8872a05313fa92cad15eedf1f93f26aee Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 25 Apr 2022 02:02:11 +0200 Subject: Moved flash to own class and used it as transition to death screen --- Flash.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Flash.h (limited to 'Flash.h') diff --git a/Flash.h b/Flash.h new file mode 100644 index 0000000..58cd547 --- /dev/null +++ b/Flash.h @@ -0,0 +1,15 @@ +#pragma once + +#include + + +struct Flash +{ + Flash(); + void update(float dt); + void draw(); + void start(); + Color m_color; + float m_duration; + float m_flash; +}; -- cgit v1.1