aboutsummaryrefslogtreecommitdiffstats
path: root/src/gameplay.cpp
diff options
context:
space:
mode:
authorsalaaad2 <arthurdurant263@gmail.com>2022-01-06 23:44:19 +0100
committersalaaad2 <arthurdurant263@gmail.com>2022-01-06 23:44:19 +0100
commita67d57e85601c6ebf69c1c6828125470035af393 (patch)
tree0d7b5d60b339e516d11fad7c38f98680724b8fc3 /src/gameplay.cpp
parentamazing textures. v0.0.4 (diff)
downloadthreshold-a67d57e85601c6ebf69c1c6828125470035af393.tar.gz
threshold-a67d57e85601c6ebf69c1c6828125470035af393.tar.bz2
threshold-a67d57e85601c6ebf69c1c6828125470035af393.tar.xz
threshold-a67d57e85601c6ebf69c1c6828125470035af393.tar.zst
threshold-a67d57e85601c6ebf69c1c6828125470035af393.zip
weapon as an abstract class. now make more weapons
Diffstat (limited to '')
-rw-r--r--src/gameplay.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gameplay.cpp b/src/gameplay.cpp
index dbfd4af..effd26d 100644
--- a/src/gameplay.cpp
+++ b/src/gameplay.cpp
@@ -13,6 +13,7 @@
#include <raylib.h>
#include "weapon.hpp"
+#include "wp_shotty.hpp"
Game::Game(std::string const & path) : current(path)
{
@@ -73,7 +74,7 @@ Game::Game(std::string const & path) : current(path)
player->radius = 10;
player->victims = 0;
player->fury = 0;
- player->wp = new Weapon(10, 10, 10,
+ player->wp = new wp_shotty(10, 10, 10,
SHOTTY_BANG,
SHOTTY_RELOAD);
player->idleTex = LoadTexture(MUCHACHO_TEX);