summaryrefslogtreecommitdiffhomepage
path: root/Oscillating.h
diff options
context:
space:
mode:
Diffstat (limited to 'Oscillating.h')
-rw-r--r--Oscillating.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/Oscillating.h b/Oscillating.h
new file mode 100644
index 0000000..d596e0f
--- /dev/null
+++ b/Oscillating.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <raylib.h>
+
+#include "Behaviour.h"
+#include "Generator.h"
+
+
+class Oscillating : virtual public Behaviour
+{
+public:
+ Oscillating();
+ void update(float dt, Vector2& position, Generator& generator) override;
+ void set_phase(float phase);
+private:
+ float m_phase;
+ float m_shift;
+};