aboutsummaryrefslogtreecommitdiff
path: root/src/entities
diff options
context:
space:
mode:
Diffstat (limited to 'src/entities')
-rw-r--r--src/entities/antifaShip.c4
-rw-r--r--src/entities/soldato.c2
-rw-r--r--src/entities/soldato.h2
3 files changed, 5 insertions, 3 deletions
diff --git a/src/entities/antifaShip.c b/src/entities/antifaShip.c
index 2b98721..b90060e 100644
--- a/src/entities/antifaShip.c
+++ b/src/entities/antifaShip.c
@@ -204,6 +204,10 @@ void controlAntifaShipKeyboardAndMouse(Game * game, Entity * entity) {
data->lastMouse = Vector2Zero();
}
+ // Kill me hehehe
+ if (IsKeyPressed(KEY_K))
+ entity->health = 0.0;
+
// Shoot bullet.
if (IsMouseButtonPressed(MOUSE_RIGHT_BUTTON))
toggleAntifaShipAutoTarget(game, entity);
diff --git a/src/entities/soldato.c b/src/entities/soldato.c
index 8372345..3f548ac 100644
--- a/src/entities/soldato.c
+++ b/src/entities/soldato.c
@@ -154,14 +154,12 @@ void drawSoldato(Game * game, Entity * entity) {
entityDraw(entity);
// Debug gun.
- /*
Soldato * data = (Soldato*)entity->data;
DrawLine3D(
entity->position,
Vector3Add(entity->position, Vector3Scale(data->gunTarget, SOLDATO_GUN_MAX_RANGE)),
BLUE
);
- */
/*
Entity * leader;
diff --git a/src/entities/soldato.h b/src/entities/soldato.h
index 44d1c08..efde07d 100644
--- a/src/entities/soldato.h
+++ b/src/entities/soldato.h
@@ -8,7 +8,7 @@
#define SOLDATO_COOLDOWN 1.0
#define SOLDATO_AIM_RADIOUS 1.5
#define SOLDATO_BULLET_DAMAGE 0.01
-#define SOLDATO_GUN_TARGETING_SPEED 2.0
+#define SOLDATO_GUN_TARGETING_SPEED 10.0 // 3.0
#define SOLDATO_GUN_MAX_RANGE 400.0
#define SOLDATO_ROTATION_SPEED 0.5