aboutsummaryrefslogtreecommitdiff
path: root/src/entities/generale.h
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-09-14 18:31:35 -0600
committernathansmithsmith <nathansmith7@mailfence.com>2023-09-14 18:31:35 -0600
commite94be85251a3905c3750487ecbdba628644a0582 (patch)
tree1a919f98cefa30db5f8d41a95a90c11874032e4e /src/entities/generale.h
parent34ce13444db7525b2dc37183675ea6e907fea642 (diff)
More generale laser stuff
Diffstat (limited to 'src/entities/generale.h')
-rw-r--r--src/entities/generale.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/entities/generale.h b/src/entities/generale.h
index bb8ba05..f400e31 100644
--- a/src/entities/generale.h
+++ b/src/entities/generale.h
@@ -8,6 +8,12 @@
#define GENERALE_ZIGZAG_SIZE_MAX 100.0
#define GENERALE_NEXT_POINT_THRESHOLD 1.0
+#define GENERALE_LASER_TRACKING_SPEED 10.0
+#define GENERALE_LASER_MAX_DISTANCE 100.0
+#define GENERALE_LASER_THICKNESS 0.25
+#define GENERALE_LASER_SIDES 8
+#define GENERALE_LASER_DAMAGE 1.0
+
typedef enum GeneraleZigZag {
GENERALE_ZIG,
GENERALE_ZAG
@@ -18,6 +24,9 @@ typedef struct Generale {
GeneraleZigZag zigzag;
Vector3 target;
bool targetNotSet;
+
+ Vector3 laserDirection;
+ bool isLaserOn;
} Generale;
void initGenerale(Entity * entity, Game * game);