aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gameplay.cpp')
-rw-r--r--src/gameplay.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp
new file mode 100644
index 0000000..4368954
--- /dev/null
+++ b/src/gameplay.cpp
@@ -0,0 +1,23 @@
+#include "gameplay.hpp"
+
+Enemy::Enemy(void)
+{
+ posX = GetRandomValue(0, SCREENWIDTH);
+ posY = GetRandomValue(0, SCREENHEIGHT);
+ direction = (Vector2){posX, posY};
+}
+
+Enemy::~Enemy() {}
+Game::~Game() {}
+
+Game::Game(void)
+{
+ nEnemies = GetRandomValue(0, 15);
+
+ enemies = new Enemy[15];
+}
+
+void Game::start() const
+{
+
+}