Wrath of Zeus
Made by Torchlight Games for CSE 125 SP24
Loading...
Searching...
No Matches
constants.hpp
Go to the documentation of this file.
1#pragma once
2#define GLM_ENABLE_EXPERIMENTAL
3#include <glm/glm.hpp>
4#include <glm/gtx/string_cast.hpp>
5#include <vector>
6
7/* ServerGameState Constants */
8#define MAX_ENEMY_VALUE 500
9#define NUM_PLAYERS 4
10
11/* Maze Constants */
12#define MAX_MAZE_COLUMNS 10000
13#define MAZE_CEILING_HEIGHT 10 // Maze ceiling height in meters
14
15/* GridCell Constants */
16#define DEFAULT_GRIDCELL_WIDTH 3
17#define DM_Z_DISCOUNT 0.2
18#define GRIDS_PER_FLOOR_OBJECT 5
19
20// Player Stat Constants
21#define INITIAL_HEALTH 100
22
23/* Inventory */
24#define INVENTORY_SIZE 4
25
26/* Spell Constants */
27#define FIRE_LIMIT 50
28#define HEAL_LIMIT 3
29#define TELEPORT_LIMIT 1
30#define TELEPORT_RANGE 15
31
32/* Potion Stats */
33#define RESTORE_HEALTH 20
34#define HEALTH_DURATION 0
35
36#define NAUSEA_SCALAR -1
37#define NAUSEA_DURATION 10
38
39#define INVIS_DURATION 15
40
41#define INVINCIBLITY_SCALAR 100
42#define INVINCIBLITY_DUR 15
43
44/* Weapon Stats */
45#define SWORD_DMG 5
46#define DAGGER_DMG 7
47#define HAMMER_DMG 15
48#define LIGHTNING_DMG 99
49
50#define SWORD_PREP 200
51#define SWORD_DUR 300
52#define SWORD_TOTAL 500
53
54#define DAGGER_PREP 150
55#define DAGGER_DUR 150
56#define DAGGER_TOTAL 300
57
58#define HAMMER_PREP 500
59#define HAMMER_DUR 350
60#define HAMMER_TOTAL 850
61
62#define LIGHTNING_PREP 1000
63#define LIGHTNING_DUR 400
64
65#define DM_MANA_TOTAL 30
66#define DM_MANA_REGEN 1
67#define LIGHTNING_MANA 6
68#define LIGHT_CUT_MANA 3
69
70/* Mirror Item */
71// Mirror use duration in seconds
72#define MIRROR_USE_DURATION 30
73
74/* Game */
75#define GRAVITY 0.03f
76#define PLAYER_SPEED 1.65f
77#define JUMP_SPEED 0.59f
78
79/* DM Constants */
80#define MAX_TRAPS 10
81#define TRAP_INVENTORY_SIZE 7
82#define TRAP_TIME 10
83#define TRAP_COOL_DOWN 5
84#define ITEM_SPAWN_PROB 0.1
85#define ITEM_SPAWN_BOUND 3
86#define LIGHTNING_LIGHT_CUT_TICKS 100
87#define LIGHT_CUT_TICKS 200
88#define LIGHT_CUT_RANGE 60.0
89#define LIGHT_CUT_RANGE_LIGHTNING 20.0