diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-02 20:29:46 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-02 20:29:46 +0100 |
commit | 30e2f2436fb1bdc688101e97f65ec1cf49ddb35d (patch) | |
tree | dcd31c2c405b55a9c301f89eda71434e1c3e6a31 /src/gameplay.cpp | |
download | threshold-30e2f2436fb1bdc688101e97f65ec1cf49ddb35d.tar.gz threshold-30e2f2436fb1bdc688101e97f65ec1cf49ddb35d.tar.bz2 threshold-30e2f2436fb1bdc688101e97f65ec1cf49ddb35d.tar.xz threshold-30e2f2436fb1bdc688101e97f65ec1cf49ddb35d.tar.zst threshold-30e2f2436fb1bdc688101e97f65ec1cf49ddb35d.zip |
initial commit
Diffstat (limited to '')
-rw-r--r-- | src/gameplay.cpp | 23 |
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 +{ + +} |