Initial commit.

This commit is contained in:
Storm Dragon
2026-01-17 22:51:22 -05:00
commit 4acd6edbf0
59 changed files with 3981 additions and 0 deletions

63
src/constants.nvgt Normal file
View File

@@ -0,0 +1,63 @@
// Map configuration
int MAP_SIZE = 35;
const int BASE_END = 4; // 0-4
const int GRASS_END = 19; // 5-19
const int GRAVEL_END = 34; // 20-34
// Expansion configuration
const int EXPANSION_SIZE = 30;
const int EXPANSION_CHANCE = 30; // 30% chance per hour before noon
int expanded_area_start = -1; // -1 means not expanded yet
int expanded_area_end = -1;
// Movement configuration
int movetime = 400; // Time between steps/movements
int walk_speed = 400;
int jump_speed = 170;
const int MAX_ITEM_STACK = 9;
// Weapon damage
const int SPEAR_DAMAGE = 3;
const int AXE_DAMAGE = 4;
const int SLING_DAMAGE_MIN = 5;
const int SLING_DAMAGE_MAX = 8;
// Zombie settings
const int ZOMBIE_HEALTH = 12;
const int ZOMBIE_MAX_COUNT = 5;
const int ZOMBIE_MOVE_INTERVAL = 1000;
const int ZOMBIE_ATTACK_INTERVAL = 1600;
const int ZOMBIE_DAMAGE_MIN = 4;
const int ZOMBIE_DAMAGE_MAX = 6;
const int ZOMBIE_GROAN_MIN_DELAY = 2000;
const int ZOMBIE_GROAN_MAX_DELAY = 3000;
const int ZOMBIE_FOOTSTEP_MAX_DISTANCE = 5;
const float ZOMBIE_SOUND_VOLUME_STEP = 3.0;
const int ZOMBIE_ATTACK_MAX_HEIGHT = 6;
// Barricade configuration
const int BARRICADE_BASE_HEALTH = 100;
const int BARRICADE_MAX_HEALTH = 500;
const int BARRICADE_STICK_COST = 3;
const int BARRICADE_STICK_HEALTH = 10;
const int BARRICADE_VINE_COST = 5;
const int BARRICADE_VINE_HEALTH = 15;
const int BARRICADE_LOG_COST = 1;
const int BARRICADE_LOG_HEALTH = 30;
const int BARRICADE_STONE_COST = 5;
const int BARRICADE_STONE_HEALTH = 20;
// Bandit settings
const int BANDIT_HEALTH = 4;
const int BANDIT_MAX_COUNT = 3;
const int BANDIT_MOVE_INTERVAL_MIN = 600;
const int BANDIT_MOVE_INTERVAL_MAX = 800;
const int BANDIT_ATTACK_INTERVAL = 1200;
const int BANDIT_DAMAGE_MIN = 1;
const int BANDIT_DAMAGE_MAX = 2;
const int BANDIT_ALERT_MIN_DELAY = 3000;
const int BANDIT_ALERT_MAX_DELAY = 5000;
const int BANDIT_FOOTSTEP_MAX_DISTANCE = 7;
const float BANDIT_SOUND_VOLUME_STEP = 3.0;
const int BANDIT_ATTACK_MAX_HEIGHT = 6;
const int INVASION_DURATION_HOURS = 1;