diff options
author | salaaad2 <arthurdurant263@gmail.com> | 2022-01-13 23:07:28 +0100 |
---|---|---|
committer | salaaad2 <arthurdurant263@gmail.com> | 2022-01-13 23:07:28 +0100 |
commit | 1d378dbddb1ba06ef9954326eec01f0cb3c33a26 (patch) | |
tree | 7e3e5590a9e3e5dc73610e1f9d34006ba5a5e950 /src/entity.cpp | |
parent | this is starting to get boring.ill see (diff) | |
download | threshold-1d378dbddb1ba06ef9954326eec01f0cb3c33a26.tar.gz threshold-1d378dbddb1ba06ef9954326eec01f0cb3c33a26.tar.bz2 threshold-1d378dbddb1ba06ef9954326eec01f0cb3c33a26.tar.xz threshold-1d378dbddb1ba06ef9954326eec01f0cb3c33a26.tar.zst threshold-1d378dbddb1ba06ef9954326eec01f0cb3c33a26.zip |
what the fuck is going on
Diffstat (limited to 'src/entity.cpp')
-rw-r--r-- | src/entity.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index 8427479..9892b0b 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -16,25 +16,25 @@ Entity::Entity(int const& h) : hp(h) { switch (dir) { case (0): { posX = - GetRandomValue((SCREENWIDTH / 2) - 30, (SCREENWIDTH / 2) + 30); + GetRandomValue((SCREENWIDTH / 2) - 300, (SCREENWIDTH / 2) + 300); posY = GetRandomValue(0, 40); break; } case (1): { - posX = GetRandomValue(SCREENWIDTH - 20, SCREENWIDTH + 20); - posY = GetRandomValue((SCREENHEIGHT / 2) - 30, - (SCREENHEIGHT / 2) + 30); + posX = GetRandomValue(SCREENWIDTH - 200, SCREENWIDTH + 200); + posY = GetRandomValue((SCREENHEIGHT / 2) - 300, + (SCREENHEIGHT / 2) + 300); break; } case (2): { posX = - GetRandomValue((SCREENWIDTH / 2) - 30, (SCREENWIDTH / 2) + 30); - posY = GetRandomValue(SCREENHEIGHT - 20, SCREENHEIGHT + 20); + GetRandomValue((SCREENWIDTH / 2) - 300, (SCREENWIDTH / 2) + 300); + posY = GetRandomValue(SCREENHEIGHT - 200, SCREENHEIGHT + 200); break; } case (3): { - posX = GetRandomValue(SCREENWIDTH - 20, SCREENWIDTH + 20); - posY = GetRandomValue((SCREENHEIGHT / 2), (SCREENHEIGHT / 2) + 10); + posX = GetRandomValue(SCREENWIDTH - 200, SCREENWIDTH + 200); + posY = GetRandomValue((SCREENHEIGHT / 2), (SCREENHEIGHT / 2) + 100); break; } } |