summaryrefslogtreecommitdiffhomepage
path: root/Flash.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-25 02:02:11 +0200
committerAki <please@ignore.pl>2022-04-25 02:02:11 +0200
commite51044a8872a05313fa92cad15eedf1f93f26aee (patch)
treeaeb0eb6866a1ee5de3088e5b1d47f227c321b1ea /Flash.h
parent858a17930e29e38f236e8b60d0199489f9df0a48 (diff)
downloadbullethell2022-e51044a8872a05313fa92cad15eedf1f93f26aee.zip
bullethell2022-e51044a8872a05313fa92cad15eedf1f93f26aee.tar.gz
bullethell2022-e51044a8872a05313fa92cad15eedf1f93f26aee.tar.bz2
Moved flash to own class and used it as transition to death screen
Diffstat (limited to 'Flash.h')
-rw-r--r--Flash.h15
1 files changed, 15 insertions, 0 deletions
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 <raylib.h>
+
+
+struct Flash
+{
+ Flash();
+ void update(float dt);
+ void draw();
+ void start();
+ Color m_color;
+ float m_duration;
+ float m_flash;
+};