From 30e2f2436fb1bdc688101e97f65ec1cf49ddb35d Mon Sep 17 00:00:00 2001 From: salaaad2 Date: Sun, 2 Jan 2022 20:29:46 +0100 Subject: initial commit --- src/gameplay.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/gameplay.cpp (limited to 'src/gameplay.cpp') 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 +{ + +} -- cgit v1.2.3