updates
This commit is contained in:
parent
276d43613d
commit
4298caf5cb
552 changed files with 42990 additions and 776 deletions
27
game/resources/audio_buses.tres
Normal file
27
game/resources/audio_buses.tres
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
[gd_resource type="AudioBusLayout" format=3]
|
||||
|
||||
[resource]
|
||||
bus/1/name = &"Music"
|
||||
bus/1/solo = false
|
||||
bus/1/mute = false
|
||||
bus/1/bypass_fx = false
|
||||
bus/1/volume_db = 0.0
|
||||
bus/1/send = &"Master"
|
||||
bus/2/name = &"SFX"
|
||||
bus/2/solo = false
|
||||
bus/2/mute = false
|
||||
bus/2/bypass_fx = false
|
||||
bus/2/volume_db = 0.0
|
||||
bus/2/send = &"Master"
|
||||
bus/3/name = &"Ambience"
|
||||
bus/3/solo = false
|
||||
bus/3/mute = false
|
||||
bus/3/bypass_fx = false
|
||||
bus/3/volume_db = 0.0
|
||||
bus/3/send = &"Master"
|
||||
bus/4/name = &"Voice"
|
||||
bus/4/solo = false
|
||||
bus/4/mute = false
|
||||
bus/4/bypass_fx = false
|
||||
bus/4/volume_db = 0.0
|
||||
bus/4/send = &"Master"
|
||||
BIN
game/resources/breaker_animations.res
Normal file
BIN
game/resources/breaker_animations.res
Normal file
Binary file not shown.
12
game/resources/enemy_overlay.gdshader
Normal file
12
game/resources/enemy_overlay.gdshader
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
shader_type spatial;
|
||||
// Overlay on a ground enemy's character (EnemyCharacters): a white hit flash (flash, 1 on a hit,
|
||||
// fading) and, at night, a faint purple glow (night_glow, set by DayNight) so enemies stay
|
||||
// readable in the dark, matching the crows' shader.
|
||||
render_mode unshaded, blend_add, depth_draw_never, cull_back;
|
||||
|
||||
uniform float flash : hint_range(0.0, 1.0) = 0.0;
|
||||
uniform float night_glow : hint_range(0.0, 1.0) = 0.0;
|
||||
|
||||
void fragment() {
|
||||
ALBEDO = vec3(1.0, 0.95, 0.9) * flash * 0.8 + vec3(0.5, 0.28, 0.75) * night_glow * 0.22;
|
||||
}
|
||||
1
game/resources/enemy_overlay.gdshader.uid
Normal file
1
game/resources/enemy_overlay.gdshader.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://cr0wjm6153fqy
|
||||
23
game/resources/fear_burst.gdshader
Normal file
23
game/resources/fear_burst.gdshader
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
shader_type spatial;
|
||||
// The scarecrow's fear burst: a flat ring on the ground racing out to the fear radius (the
|
||||
// plane is sized to it) with a faint fill behind it, fading as it goes. t runs 0 -> 1 over the
|
||||
// burst. Drawn over the scene so raised ground tiles and crops don't hide it.
|
||||
render_mode unshaded, cull_disabled, depth_test_disabled, shadows_disabled;
|
||||
|
||||
uniform float t : hint_range(0.0, 1.0) = 0.0;
|
||||
uniform vec4 color : source_color = vec4(0.7, 0.92, 1.0, 1.0);
|
||||
|
||||
void fragment() {
|
||||
vec2 p = UV * 2.0 - 1.0;
|
||||
float r = length(p);
|
||||
float front = sqrt(t); // fast at first, easing out
|
||||
float width = 0.05 + 0.08 * t;
|
||||
float fade = 1.0 - t;
|
||||
float a = smoothstep(width, 0.0, abs(r - front)) * fade;
|
||||
a += step(r, front) * 0.16 * fade;
|
||||
if (r > 1.0 || a <= 0.002) {
|
||||
discard;
|
||||
}
|
||||
ALBEDO = color.rgb;
|
||||
ALPHA = a * color.a;
|
||||
}
|
||||
1
game/resources/fear_burst.gdshader.uid
Normal file
1
game/resources/fear_burst.gdshader.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://cph3bo6e0l8gl
|
||||
|
|
@ -10,10 +10,218 @@ dusk_length = 30.0
|
|||
night_length = 150.0
|
||||
dawn_grace = 20.0
|
||||
allow_early_night = false
|
||||
scarecrow_max_hp = 10
|
||||
scarecrow_max_hp = 3
|
||||
start_crops = 30
|
||||
start_animals = 0
|
||||
start_supplies = 0
|
||||
start_animals = 8
|
||||
start_structures = Array[Dictionary]([{
|
||||
"rot": 2,
|
||||
"type": "gate",
|
||||
"x": 4.0,
|
||||
"z": -6.0
|
||||
}])
|
||||
fear_drops_loot = true
|
||||
loot_returns_at_dawn = true
|
||||
max_following_animals = 3
|
||||
max_following_animals = 5
|
||||
crop_steal_time = 2.5
|
||||
animal_capture_time = 2.0
|
||||
supply_steal_time = 1.0
|
||||
supply_bundle = 5
|
||||
stray_speed = 1.1
|
||||
animal_wander_interval = 10.0
|
||||
animal_calm_time = 30.0
|
||||
follow_speed = 6.0
|
||||
target_weights = {
|
||||
"animals": 1.0,
|
||||
"crops": 2.0,
|
||||
"supplies": 1.0
|
||||
}
|
||||
pickup_radius = 1.3
|
||||
combat_height = 1.8
|
||||
pitchfork_reach = 2.2
|
||||
pitchfork_arc = 100.0
|
||||
pitchfork_damage = 2
|
||||
pitchfork_targets = 3
|
||||
pitchfork_interval = 0.5
|
||||
bomb_range = 10.0
|
||||
bomb_min_range = 2.0
|
||||
bomb_speed = 12.0
|
||||
bomb_radius = 3.0
|
||||
bomb_damage = 3
|
||||
bomb_cooldown = 4.0
|
||||
fire_rate = 6.0
|
||||
projectile_speed = 24.0
|
||||
projectile_lifetime = 2.0
|
||||
projectile_capacity = 64
|
||||
muzzle_distance = 1.05
|
||||
aim_dead_zone = 0.3
|
||||
mouse_switch_threshold = 12.0
|
||||
enemy_capacity = 800
|
||||
enemy_radius = 0.3
|
||||
nav_cell_size = 0.5
|
||||
nav_inflate_margin = 0.05
|
||||
separation_radius = 0.8
|
||||
separation_weight = 1.4
|
||||
max_correction_per_tick = 0.15
|
||||
direct_seek_distance = 12.0
|
||||
night_thieves = 0
|
||||
thief_spawn_interval = 6.0
|
||||
trickle_type = "crow"
|
||||
trickle_target = "any"
|
||||
enemy_types = {
|
||||
"breaker": {
|
||||
"acceleration": 8.0,
|
||||
"aggression": "fight",
|
||||
"aggro_range": 4.0,
|
||||
"carry_speed": 0.0,
|
||||
"damage": 2,
|
||||
"flying": false,
|
||||
"hit_interval": 1.5,
|
||||
"hit_radius": 0.55,
|
||||
"hp": 6,
|
||||
"speed": 1.9,
|
||||
"steal_time": 0.0,
|
||||
"structure_damage": 8,
|
||||
"targets": ["structures"]
|
||||
},
|
||||
"crow": {
|
||||
"acceleration": 18.0,
|
||||
"aggression": "none",
|
||||
"aggro_range": 0.0,
|
||||
"carry_speed": 0.75,
|
||||
"damage": 0,
|
||||
"flying": true,
|
||||
"hit_interval": 1.0,
|
||||
"hit_radius": 0.45,
|
||||
"hp": 1,
|
||||
"speed": 5.5,
|
||||
"steal_time": 0.8,
|
||||
"structure_damage": 0,
|
||||
"targets": ["crops"]
|
||||
},
|
||||
"thief": {
|
||||
"acceleration": 14.0,
|
||||
"aggression": "contact",
|
||||
"aggro_range": 0.0,
|
||||
"carry_speed": 0.7,
|
||||
"damage": 1,
|
||||
"flying": false,
|
||||
"hit_interval": 1.2,
|
||||
"hit_radius": 0.4,
|
||||
"hp": 3,
|
||||
"speed": 3.0,
|
||||
"steal_time": 1.0,
|
||||
"structure_damage": 2,
|
||||
"targets": ["animals", "supplies"]
|
||||
}
|
||||
}
|
||||
cruise_altitude = 3.2
|
||||
land_altitude = 1.55
|
||||
guard_range = 6.0
|
||||
invulnerability_time = 1.0
|
||||
fear_radius = 6.0
|
||||
fear_cooldown = 12.0
|
||||
fear_duration = 2.0
|
||||
patch_time = 2.0
|
||||
patch_heal = 3
|
||||
sprint_speed_mult = 1.6
|
||||
sprint_time = 3.0
|
||||
sprint_cooldown = 10.0
|
||||
enemy_attack_reach = 0.25
|
||||
flee_speed_factor = 1.15
|
||||
start_wood = 4
|
||||
start_scrap = 2
|
||||
start_straw = 4
|
||||
pouch_capacity = 16
|
||||
gather_time = 1.5
|
||||
costs = {
|
||||
"automated_defense": {
|
||||
"scrap": 6,
|
||||
"straw": 2,
|
||||
"wood": 2
|
||||
},
|
||||
"fence": {
|
||||
"wood": 2
|
||||
},
|
||||
"gate": {
|
||||
"scrap": 1,
|
||||
"wood": 4
|
||||
},
|
||||
"patch": {
|
||||
"straw": 2
|
||||
},
|
||||
"slowing_trap": {
|
||||
"scrap": 3,
|
||||
"wood": 1
|
||||
},
|
||||
"straw_stuffing": {
|
||||
"straw": 12,
|
||||
"wood": 4
|
||||
},
|
||||
"sprint": {
|
||||
"straw": 6,
|
||||
"wood": 8
|
||||
},
|
||||
"corn_shooter": {
|
||||
"scrap": 10,
|
||||
"wood": 4
|
||||
},
|
||||
"pumpkin_bomb": {
|
||||
"scrap": 6,
|
||||
"straw": 12
|
||||
},
|
||||
"rapid_fire": {
|
||||
"scrap": 12,
|
||||
"wood": 8
|
||||
},
|
||||
"heavy_seeds": {
|
||||
"scrap": 14,
|
||||
"straw": 10
|
||||
},
|
||||
"wide_fear": {
|
||||
"straw": 20,
|
||||
"wood": 4
|
||||
},
|
||||
"quick_fear": {
|
||||
"scrap": 6,
|
||||
"straw": 16
|
||||
},
|
||||
"reinforced_fences": {
|
||||
"scrap": 6,
|
||||
"wood": 20
|
||||
},
|
||||
"long_range": {
|
||||
"scrap": 14,
|
||||
"wood": 10
|
||||
},
|
||||
"sticky_tar": {
|
||||
"scrap": 6,
|
||||
"straw": 14
|
||||
}
|
||||
}
|
||||
shot_damage = 1
|
||||
upgrades = {
|
||||
"corn_shooter": {"name": "Corn shooter", "text": "A gun that fires corn kernels, from afar", "track": "Weapon"},
|
||||
"heavy_seeds": {"add": 1, "name": "Heavy seeds", "requires": "corn_shooter", "stat": "shot_damage", "text": "Each kernel does 2 damage", "track": "Weapon"},
|
||||
"long_range": {"mult": 1.3, "name": "Long-range defenses", "stat": "turret_range", "text": "Automated defenses reach 30% farther", "track": "Defenses"},
|
||||
"pumpkin_bomb": {"name": "Pumpkin bombs", "text": "Throw a pumpkin that bursts, hurting everything within 3 m (one every 4 s)", "track": "Weapon"},
|
||||
"quick_fear": {"mult": 0.8, "name": "Quick fear", "stat": "fear_cooldown", "text": "Fear recharges 20% faster", "track": "Fear"},
|
||||
"rapid_fire": {"mult": 1.333, "name": "Rapid fire", "requires": "corn_shooter", "stat": "fire_rate", "text": "The corn shooter fires a third faster", "track": "Weapon"},
|
||||
"reinforced_fences": {"mult": 1.5, "name": "Reinforced fences", "stat": "barrier_hp", "text": "Fences and gates +50% health", "track": "Defenses"},
|
||||
"sprint": {"name": "Sprint", "text": "Sprint 60% faster for 3 s at a time, every 10 s", "track": "Scarecrow"},
|
||||
"sticky_tar": {"mult": 1.5, "name": "Sticky tar", "stat": "trap_slow_time", "text": "Slowing traps hold 50% longer", "track": "Defenses"},
|
||||
"straw_stuffing": {"add": 2, "name": "Straw stuffing", "stat": "scarecrow_max_hp", "text": "+2 max health", "track": "Scarecrow"},
|
||||
"wide_fear": {"mult": 1.3, "name": "Wide fear", "stat": "fear_radius", "text": "Fear reaches 30% farther", "track": "Fear"}
|
||||
}
|
||||
fence_hp = 20
|
||||
gate_hp = 30
|
||||
trap_triggers = 10
|
||||
turret_hp = 25
|
||||
trap_slow_factor = 0.5
|
||||
trap_slow_time = 2.0
|
||||
turret_range = 7.0
|
||||
turret_fire_interval = 1.0
|
||||
build_range = 9.0
|
||||
barrier_detour = 18.0
|
||||
repair_time = 1.5
|
||||
dismantle_refund = 0.5
|
||||
flow_slice_cells = 2000
|
||||
|
|
|
|||
23
game/resources/hp_bar.gdshader
Normal file
23
game/resources/hp_bar.gdshader
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
shader_type spatial;
|
||||
// Billboarded health bar over a damaged structure: fills from the left by `fill`, green at full
|
||||
// through yellow to red, on a dark backing. Drawn over the scene so the structure can't hide it.
|
||||
render_mode unshaded, cull_disabled, depth_test_disabled, shadows_disabled;
|
||||
|
||||
uniform float fill : hint_range(0.0, 1.0) = 1.0;
|
||||
|
||||
void vertex() {
|
||||
MODELVIEW_MATRIX = VIEW_MATRIX * mat4(INV_VIEW_MATRIX[0], INV_VIEW_MATRIX[1], INV_VIEW_MATRIX[2], MODEL_MATRIX[3]);
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
vec2 p = UV;
|
||||
float edge = 0.08;
|
||||
bool border = p.x < edge * 0.25 || p.x > 1.0 - edge * 0.25 || p.y < edge || p.y > 1.0 - edge;
|
||||
vec3 good = vec3(0.4, 0.9, 0.3);
|
||||
vec3 mid = vec3(1.0, 0.8, 0.2);
|
||||
vec3 bad = vec3(1.0, 0.25, 0.15);
|
||||
vec3 bar = fill > 0.5 ? mix(mid, good, (fill - 0.5) * 2.0) : mix(bad, mid, fill * 2.0);
|
||||
vec3 col = border ? vec3(0.02) : (p.x <= fill ? bar : vec3(0.12));
|
||||
ALBEDO = col;
|
||||
ALPHA = 0.95;
|
||||
}
|
||||
1
game/resources/hp_bar.gdshader.uid
Normal file
1
game/resources/hp_bar.gdshader.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://cigmrijnscla7
|
||||
31
game/resources/loot_icon.gdshader
Normal file
31
game/resources/loot_icon.gdshader
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
shader_type spatial;
|
||||
// Billboarded badge over carried or dropped loot: a center and a fill in the loot's category
|
||||
// colors (crops: a sunflower; animals: pink; supplies: a sack) and a colored rim (red = carried
|
||||
// off, yellow = dropped, pulsing toward white so it reads as "pick me up"). Drawn over the scene
|
||||
// so a carrier behind a building can still be tracked.
|
||||
render_mode unshaded, cull_disabled, depth_test_disabled, shadows_disabled;
|
||||
|
||||
uniform vec4 edge_color : source_color = vec4(1.0, 0.22, 0.15, 1.0);
|
||||
uniform vec4 fill_color : source_color = vec4(1.0, 0.82, 0.18, 1.0);
|
||||
uniform vec4 center_color : source_color = vec4(0.32, 0.18, 0.07, 1.0);
|
||||
uniform float pulse : hint_range(0.0, 1.0) = 0.0;
|
||||
|
||||
void vertex() {
|
||||
MODELVIEW_MATRIX = VIEW_MATRIX * mat4(INV_VIEW_MATRIX[0], INV_VIEW_MATRIX[1], INV_VIEW_MATRIX[2], MODEL_MATRIX[3]);
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
vec2 p = UV * 2.0 - 1.0;
|
||||
float r = length(p);
|
||||
if (r > 1.0) {
|
||||
discard;
|
||||
}
|
||||
vec3 col = fill_color.rgb;
|
||||
if (r < 0.34) {
|
||||
col = center_color.rgb;
|
||||
} else if (r > 0.74) {
|
||||
col = mix(edge_color.rgb, vec3(1.0), pulse * 0.7);
|
||||
}
|
||||
ALBEDO = col;
|
||||
ALPHA = 0.95;
|
||||
}
|
||||
1
game/resources/loot_icon.gdshader.uid
Normal file
1
game/resources/loot_icon.gdshader.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://cickuixgqv8ka
|
||||
47
game/resources/nights/night_1.tres
Normal file
47
game/resources/nights/night_1.tres
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://14uhnrybetil"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_plan")
|
||||
title = "Crows at the crops"
|
||||
dusk_hint = "The crows are coming for the crops....."
|
||||
count_scale = 1.0
|
||||
spacing_scale = 1.0
|
||||
groups = Array[Dictionary]([{
|
||||
"count": 1,
|
||||
"every": 3.0,
|
||||
"target": "crops",
|
||||
"time": 6.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 1,
|
||||
"every": 3.0,
|
||||
"target": "crops",
|
||||
"time": 22.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 4.0,
|
||||
"target": "crops",
|
||||
"time": 40.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 3.0,
|
||||
"target": "crops",
|
||||
"time": 62.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 3,
|
||||
"every": 3.0,
|
||||
"target": "crops",
|
||||
"time": 86.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 3.0,
|
||||
"target": "crops",
|
||||
"time": 115.0,
|
||||
"type": "crow"
|
||||
}])
|
||||
57
game/resources/nights/night_2.tres
Normal file
57
game/resources/nights/night_2.tres
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://dpc1nd7ihxmgh"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_plan")
|
||||
title = "Thieves in the yard"
|
||||
dusk_hint = "The Crows are coming again...... and what are those things?!"
|
||||
groups = Array[Dictionary]([{
|
||||
"count": 3,
|
||||
"every": 2.0,
|
||||
"target": "crops",
|
||||
"time": 5.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 4.0,
|
||||
"target": "supplies",
|
||||
"time": 20.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 3,
|
||||
"every": 2.0,
|
||||
"target": "crops",
|
||||
"time": 40.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 1,
|
||||
"every": 2.0,
|
||||
"target": "animals",
|
||||
"time": 55.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 3,
|
||||
"every": 2.0,
|
||||
"target": "crops",
|
||||
"time": 90.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 1,
|
||||
"every": 2.0,
|
||||
"target": "supplies",
|
||||
"time": 100.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 1,
|
||||
"every": 2.0,
|
||||
"target": "animals",
|
||||
"time": 110.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 2.0,
|
||||
"target": "crops",
|
||||
"time": 120.0,
|
||||
"type": "crow"
|
||||
}])
|
||||
51
game/resources/nights/night_3.tres
Normal file
51
game/resources/nights/night_3.tres
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://c1euh8r1ek74x"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_plan")
|
||||
title = "Breakers at the fences"
|
||||
dusk_hint = "You guessed it. Crows. Thieves. And.... Oh no..."
|
||||
groups = Array[Dictionary]([{
|
||||
"count": 1,
|
||||
"every": 2.0,
|
||||
"target": "any",
|
||||
"time": 5.0,
|
||||
"type": "breaker"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 4.0,
|
||||
"target": "animals",
|
||||
"time": 20.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 3,
|
||||
"every": 2.0,
|
||||
"target": "crops",
|
||||
"time": 40.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 1,
|
||||
"every": 2.0,
|
||||
"target": "any",
|
||||
"time": 60.0,
|
||||
"type": "breaker"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 4.0,
|
||||
"target": "supplies",
|
||||
"time": 75.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 3,
|
||||
"every": 2.0,
|
||||
"target": "crops",
|
||||
"time": 100.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 1,
|
||||
"every": 2.0,
|
||||
"target": "any",
|
||||
"time": 120.0,
|
||||
"type": "thief"
|
||||
}])
|
||||
57
game/resources/nights/night_4.tres
Normal file
57
game/resources/nights/night_4.tres
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://cl3uvraq82hbi"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_plan")
|
||||
title = "From both sides"
|
||||
dusk_hint = "AHHHHHHH....."
|
||||
groups = Array[Dictionary]([{
|
||||
"count": 4,
|
||||
"every": 1.5,
|
||||
"target": "crops",
|
||||
"time": 10.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 3.0,
|
||||
"target": "animals",
|
||||
"time": 10.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 3,
|
||||
"every": 1.5,
|
||||
"target": "crops",
|
||||
"time": 55.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 1,
|
||||
"every": 2.0,
|
||||
"target": "any",
|
||||
"time": 55.0,
|
||||
"type": "breaker"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 3.0,
|
||||
"target": "animals",
|
||||
"time": 57.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 4,
|
||||
"every": 1.5,
|
||||
"target": "crops",
|
||||
"time": 100.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 3.0,
|
||||
"target": "supplies",
|
||||
"time": 100.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 1,
|
||||
"every": 2.0,
|
||||
"target": "any",
|
||||
"time": 102.0,
|
||||
"type": "breaker"
|
||||
}])
|
||||
76
game/resources/nights/night_5.tres
Normal file
76
game/resources/nights/night_5.tres
Normal file
|
|
@ -0,0 +1,76 @@
|
|||
[gd_resource type="Resource" script_class="NightPlan" format=3 uid="uid://b27he0p0joyl0"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bx3jd1naaa7iu" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_plan")
|
||||
title = "The last night"
|
||||
dusk_hint = "The farmers are back in the morning. It's gonna be a long night...."
|
||||
night_length = 180.0
|
||||
groups = Array[Dictionary]([{
|
||||
"count": 4,
|
||||
"every": 2.0,
|
||||
"target": "crops",
|
||||
"time": 5.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 3.0,
|
||||
"target": "animals",
|
||||
"time": 8.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 1,
|
||||
"every": 2.0,
|
||||
"target": "any",
|
||||
"time": 55.0,
|
||||
"type": "breaker"
|
||||
}, {
|
||||
"count": 1,
|
||||
"every": 2.0,
|
||||
"target": "any",
|
||||
"time": 58.0,
|
||||
"type": "breaker"
|
||||
}, {
|
||||
"count": 3,
|
||||
"every": 3.0,
|
||||
"target": "supplies",
|
||||
"time": 65.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 3,
|
||||
"every": 2.0,
|
||||
"target": "crops",
|
||||
"time": 70.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 3,
|
||||
"every": 1.5,
|
||||
"target": "crops",
|
||||
"time": 115.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 1.5,
|
||||
"target": "crops",
|
||||
"time": 115.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 3.0,
|
||||
"target": "any",
|
||||
"time": 118.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 1,
|
||||
"every": 3.0,
|
||||
"target": "any",
|
||||
"time": 120.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 1,
|
||||
"every": 2.0,
|
||||
"target": "any",
|
||||
"time": 125.0,
|
||||
"type": "breaker"
|
||||
}])
|
||||
Binary file not shown.
38
game/resources/scenarios/all_three.tres
Normal file
38
game/resources/scenarios/all_three.tres
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
[gd_resource type="Resource" script_class="NightPlan" format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_plan")
|
||||
title = "All three"
|
||||
groups = Array[Dictionary]([{
|
||||
"count": 1,
|
||||
"every": 2.0,
|
||||
"target": "any",
|
||||
"time": 3.0,
|
||||
"type": "breaker"
|
||||
}, {
|
||||
"count": 3,
|
||||
"every": 1.5,
|
||||
"target": "crops",
|
||||
"time": 8.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 3.0,
|
||||
"target": "animals",
|
||||
"time": 12.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 3,
|
||||
"every": 1.5,
|
||||
"target": "crops",
|
||||
"time": 35.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 3.0,
|
||||
"target": "supplies",
|
||||
"time": 40.0,
|
||||
"type": "thief"
|
||||
}])
|
||||
20
game/resources/scenarios/breakers.tres
Normal file
20
game/resources/scenarios/breakers.tres
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
[gd_resource type="Resource" script_class="NightPlan" format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_plan")
|
||||
title = "Fence breakers only"
|
||||
groups = Array[Dictionary]([{
|
||||
"count": 1,
|
||||
"every": 2.0,
|
||||
"target": "any",
|
||||
"time": 3.0,
|
||||
"type": "breaker"
|
||||
}, {
|
||||
"count": 1,
|
||||
"every": 2.0,
|
||||
"target": "any",
|
||||
"time": 40.0,
|
||||
"type": "breaker"
|
||||
}])
|
||||
26
game/resources/scenarios/crows.tres
Normal file
26
game/resources/scenarios/crows.tres
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
[gd_resource type="Resource" script_class="NightPlan" format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_plan")
|
||||
title = "Crows only"
|
||||
groups = Array[Dictionary]([{
|
||||
"count": 3,
|
||||
"every": 1.5,
|
||||
"target": "crops",
|
||||
"time": 3.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 3,
|
||||
"every": 1.5,
|
||||
"target": "crops",
|
||||
"time": 25.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 4,
|
||||
"every": 1.0,
|
||||
"target": "crops",
|
||||
"time": 50.0,
|
||||
"type": "crow"
|
||||
}])
|
||||
32
game/resources/scenarios/crows_thieves.tres
Normal file
32
game/resources/scenarios/crows_thieves.tres
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
[gd_resource type="Resource" script_class="NightPlan" format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_plan")
|
||||
title = "Crows and thieves"
|
||||
groups = Array[Dictionary]([{
|
||||
"count": 3,
|
||||
"every": 1.5,
|
||||
"target": "crops",
|
||||
"time": 3.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 3.0,
|
||||
"target": "animals",
|
||||
"time": 5.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 3,
|
||||
"every": 1.5,
|
||||
"target": "crops",
|
||||
"time": 35.0,
|
||||
"type": "crow"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 3.0,
|
||||
"target": "supplies",
|
||||
"time": 38.0,
|
||||
"type": "thief"
|
||||
}])
|
||||
26
game/resources/scenarios/thieves.tres
Normal file
26
game/resources/scenarios/thieves.tres
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
[gd_resource type="Resource" script_class="NightPlan" format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_plan")
|
||||
title = "Ground thieves only"
|
||||
groups = Array[Dictionary]([{
|
||||
"count": 2,
|
||||
"every": 3.0,
|
||||
"target": "supplies",
|
||||
"time": 3.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 3.0,
|
||||
"target": "animals",
|
||||
"time": 20.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 3.0,
|
||||
"target": "any",
|
||||
"time": 45.0,
|
||||
"type": "thief"
|
||||
}])
|
||||
26
game/resources/scenarios/thieves_breakers.tres
Normal file
26
game/resources/scenarios/thieves_breakers.tres
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
[gd_resource type="Resource" script_class="NightPlan" format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://game/scripts/night_plan.gd" id="1_plan"]
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_plan")
|
||||
title = "Thieves behind a fence breaker"
|
||||
groups = Array[Dictionary]([{
|
||||
"count": 1,
|
||||
"every": 2.0,
|
||||
"target": "any",
|
||||
"time": 3.0,
|
||||
"type": "breaker"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 4.0,
|
||||
"target": "animals",
|
||||
"time": 15.0,
|
||||
"type": "thief"
|
||||
}, {
|
||||
"count": 2,
|
||||
"every": 3.0,
|
||||
"target": "supplies",
|
||||
"time": 40.0,
|
||||
"type": "thief"
|
||||
}])
|
||||
24
game/resources/steal_ring.gdshader
Normal file
24
game/resources/steal_ring.gdshader
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
shader_type spatial;
|
||||
// Billboarded radial progress ring above a crop unit while a thief takes it. Fills clockwise
|
||||
// from the top; drawn over the scene so crops and buildings never hide it.
|
||||
render_mode unshaded, cull_disabled, depth_test_disabled, shadows_disabled;
|
||||
|
||||
uniform float progress : hint_range(0.0, 1.0) = 0.0;
|
||||
uniform vec4 fill_color : source_color = vec4(1.0, 0.45, 0.1, 1.0);
|
||||
uniform vec4 back_color : source_color = vec4(0.05, 0.05, 0.05, 0.6);
|
||||
|
||||
void vertex() {
|
||||
MODELVIEW_MATRIX = VIEW_MATRIX * mat4(INV_VIEW_MATRIX[0], INV_VIEW_MATRIX[1], INV_VIEW_MATRIX[2], MODEL_MATRIX[3]);
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
vec2 p = UV * 2.0 - 1.0;
|
||||
float r = length(p);
|
||||
if (r > 1.0 || r < 0.58) {
|
||||
discard;
|
||||
}
|
||||
float a = fract(atan(p.x, -p.y) / 6.2831853 + 1.0);
|
||||
vec4 c = a <= progress ? fill_color : back_color;
|
||||
ALBEDO = c.rgb;
|
||||
ALPHA = c.a;
|
||||
}
|
||||
1
game/resources/steal_ring.gdshader.uid
Normal file
1
game/resources/steal_ring.gdshader.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://bvuoqfvggy7iy
|
||||
30
game/resources/thief.gdshader
Normal file
30
game/resources/thief.gdshader
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
shader_type spatial;
|
||||
// Shared enemy material (one MultiMesh batch), from the prototype's bird shader: wings (local
|
||||
// |x|) flap with a per-enemy phase from INSTANCE_CUSTOM.r, and a hit flashes the enemy white
|
||||
// through INSTANCE_CUSTOM.g (1 on the hit, fading). Rim light keeps the near-black crow
|
||||
// readable against the grass and crops, and night_glow (set by DayNight) adds a faint purple glow
|
||||
// at night.
|
||||
render_mode cull_disabled;
|
||||
|
||||
uniform vec3 base_color : source_color = vec3(0.07, 0.07, 0.09);
|
||||
uniform float flap_speed = 11.0;
|
||||
uniform float flap_amount = 0.55;
|
||||
uniform float night_glow : hint_range(0.0, 1.0) = 0.0;
|
||||
|
||||
varying float flash;
|
||||
|
||||
void vertex() {
|
||||
float span = abs(VERTEX.x);
|
||||
float phase = INSTANCE_CUSTOM.r * 6.2831853;
|
||||
VERTEX.y += sin(TIME * flap_speed + phase) * span * flap_amount;
|
||||
flash = INSTANCE_CUSTOM.g;
|
||||
}
|
||||
|
||||
void fragment() {
|
||||
ALBEDO = mix(base_color, vec3(1.0), clamp(flash, 0.0, 1.0));
|
||||
EMISSION = vec3(1.0, 0.9, 0.8) * flash * 0.6 + vec3(0.5, 0.28, 0.75) * night_glow * 0.35;
|
||||
ROUGHNESS = 0.55;
|
||||
SPECULAR = 0.4;
|
||||
RIM = 0.8;
|
||||
RIM_TINT = 0.3;
|
||||
}
|
||||
1
game/resources/thief.gdshader.uid
Normal file
1
game/resources/thief.gdshader.uid
Normal file
|
|
@ -0,0 +1 @@
|
|||
uid://5vlqyyk1u75v
|
||||
580
game/resources/ui_theme.tres
Normal file
580
game/resources/ui_theme.tres
Normal file
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue