started working on fog darkness

This commit is contained in:
2026-01-13 00:16:08 +01:00
parent 82a70aa6a2
commit 89a41397d1
30 changed files with 1613 additions and 386 deletions

View File

@@ -2,10 +2,25 @@
[ext_resource type="Script" uid="uid://c0wywibyp77c" path="res://scripts/enemy_bat.gd" id="1"]
[ext_resource type="Texture2D" uid="uid://bipt58n2ggxu5" path="res://assets/gfx/enemies/Bat.png" id="2"]
[ext_resource type="AudioStream" uid="uid://dcn14oarhvvlk" path="res://assets/audio/sfx/enemies/bat/bat_flap1.mp3" id="3_xbmos"]
[ext_resource type="AudioStream" uid="uid://chm1mvjrrj3vj" path="res://assets/audio/sfx/enemies/bat/bat_flap2.mp3" id="4_veom1"]
[ext_resource type="AudioStream" uid="uid://bessb1ga6hwy4" path="res://assets/audio/sfx/enemies/bat/bat_chirp.mp3" id="5_yoqnl"]
[sub_resource type="CircleShape2D" id="CircleShape2D_bat"]
radius = 6.0
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_o7h1p"]
playback_mode = 1
random_pitch = 1.0178324
streams_count = 2
stream_0/stream = ExtResource("3_xbmos")
stream_1/stream = ExtResource("4_veom1")
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_6m63e"]
random_pitch = 1.0118532
streams_count = 1
stream_0/stream = ExtResource("5_yoqnl")
[node name="EnemyBat" type="CharacterBody2D" unique_id=909833829]
collision_layer = 2
script = ExtResource("1")
@@ -29,3 +44,15 @@ frame = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=897277405]
shape = SubResource("CircleShape2D_bat")
[node name="BatFlapSfx" type="AudioStreamPlayer2D" parent="." unique_id=2095836633]
stream = SubResource("AudioStreamRandomizer_o7h1p")
max_distance = 1160.0
attenuation = 7.999991
panning_strength = 1.09
[node name="BatChirpSfx" type="AudioStreamPlayer2D" parent="." unique_id=288445950]
stream = SubResource("AudioStreamRandomizer_6m63e")
max_distance = 1107.0
attenuation = 9.18958
panning_strength = 1.05

View File

@@ -4,6 +4,7 @@
[ext_resource type="PackedScene" uid="uid://cxfvw8y7jqn2p" path="res://scenes/player.tscn" id="2"]
[ext_resource type="Script" uid="uid://db58xcyo4cjk" path="res://scripts/game_world.gd" id="4"]
[ext_resource type="Script" uid="uid://wff5063ctp7g" path="res://scripts/debug_overlay.gd" id="5"]
[ext_resource type="Script" path="res://scripts/room_lighting_system.gd" id="6"]
[ext_resource type="AudioStream" uid="uid://dthr2w8x0cj6v" path="res://assets/audio/sfx/ambience/wind-castle-loop.wav.mp3" id="6_6c6v5"]
[ext_resource type="TileSet" uid="uid://dqem5tbvooxrg" path="res://assets/gfx/RPG DUNGEON VOL 3.tres" id="9"]
@@ -37,7 +38,10 @@ script = ExtResource("5")
[node name="CanvasModulate" type="CanvasModulate" parent="." unique_id=948490815]
light_mask = 1048575
visibility_layer = 1048575
color = Color(0.671875, 0.671875, 0.671875, 1)
color = Color(0.4140625, 0.4140625, 0.4140625, 1)
[node name="RoomLightingSystem" type="Node2D" parent="." unique_id=1234567893]
script = ExtResource("6")
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="." unique_id=1141138343]
stream = ExtResource("6_6c6v5")

View File

@@ -1,6 +1,12 @@
[gd_scene format=3 uid="uid://cxs0ybxk2blth"]
[ext_resource type="Script" uid="uid://vm6intetgl40" path="res://scripts/inventory_ui.gd" id="1_inventory_ui"]
[ext_resource type="FontFile" uid="uid://bajcvmidrnc33" path="res://assets/fonts/standard_font.png" id="2_ylkvr"]
[ext_resource type="AudioStream" uid="uid://b5xbv7s85sy5o" path="res://assets/audio/sfx/pickups/potion.mp3" id="3_eicjl"]
[ext_resource type="AudioStream" uid="uid://cnb376ah43nqi" path="res://assets/audio/sfx/pickups/bite-food-01.mp3" id="4_uwj4j"]
[ext_resource type="AudioStream" uid="uid://bbnby1sso3f4v" path="res://assets/audio/sfx/pickups/bite-food-02.mp3" id="5_1dxi5"]
[ext_resource type="AudioStream" uid="uid://umoxmryvbm01" path="res://assets/audio/sfx/cloth/leather_cloth_01.wav.mp3" id="6_dqfnd"]
[ext_resource type="AudioStream" uid="uid://djw6c5rb4mm60" path="res://assets/audio/sfx/cloth/leather_cloth_02.wav.mp3" id="7_ngbl7"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_selection"]
bg_color = Color(0, 0, 0, 0)
@@ -10,11 +16,24 @@ border_width_right = 2
border_width_bottom = 2
border_color = Color(1, 1, 0, 1)
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_8wyaw"]
playback_mode = 1
random_pitch = 1.0059091
streams_count = 2
stream_0/stream = ExtResource("4_uwj4j")
stream_1/stream = ExtResource("5_1dxi5")
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_cwdri"]
streams_count = 2
stream_0/stream = ExtResource("6_dqfnd")
stream_1/stream = ExtResource("7_ngbl7")
[node name="InventoryUI" type="CanvasLayer" unique_id=-1294967296]
layer = 150
script = ExtResource("1_inventory_ui")
[node name="InventoryContainer" type="Control" parent="." unique_id=-294967296]
visible = false
layout_mode = 3
anchors_preset = 3
anchor_left = 1.0
@@ -44,29 +63,39 @@ size_flags_vertical = 3
mouse_filter = 1
color = Color(0.1, 0.1, 0.1, 0.85)
[node name="VBoxContainer" type="VBoxContainer" parent="InventoryContainer/MarginContainer" unique_id=1015792177]
[node name="MarginContainer" type="MarginContainer" parent="InventoryContainer/MarginContainer" unique_id=828124619]
layout_mode = 2
theme_override_constants/margin_left = 16
theme_override_constants/margin_top = 16
theme_override_constants/margin_right = 16
theme_override_constants/margin_bottom = 16
[node name="HBox" type="HBoxContainer" parent="InventoryContainer/MarginContainer/VBoxContainer" unique_id=1705032704]
[node name="VBoxContainer" type="VBoxContainer" parent="InventoryContainer/MarginContainer/MarginContainer" unique_id=1015792177]
layout_mode = 2
theme_override_constants/separation = 4
[node name="HBox" type="HBoxContainer" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer" unique_id=1705032704]
layout_mode = 2
theme_override_constants/separation = 10
[node name="StatsPanel" type="VBoxContainer" parent="InventoryContainer/MarginContainer/VBoxContainer/HBox" unique_id=-1589934592]
[node name="StatsPanel" type="VBoxContainer" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer/HBox" unique_id=-1589934592]
custom_minimum_size = Vector2(200, 0)
layout_mode = 2
theme_override_constants/separation = 5
[node name="StatsLabel" type="Label" parent="InventoryContainer/MarginContainer/VBoxContainer/HBox/StatsPanel" unique_id=-589934592]
[node name="StatsLabel" type="Label" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer/HBox/StatsPanel" unique_id=-589934592]
layout_mode = 2
theme_override_font_sizes/font_size = 14
theme_override_fonts/font = ExtResource("2_ylkvr")
theme_override_font_sizes/font_size = 16
text = "Stats"
[node name="StatsHBox" type="HBoxContainer" parent="InventoryContainer/MarginContainer/VBoxContainer/HBox/StatsPanel" unique_id=410065408]
[node name="StatsHBox" type="HBoxContainer" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer/HBox/StatsPanel" unique_id=410065408]
layout_mode = 2
theme_override_constants/separation = 5
[node name="LabelBaseStats" type="Label" parent="InventoryContainer/MarginContainer/VBoxContainer/HBox/StatsPanel/StatsHBox" unique_id=1410065408]
[node name="LabelBaseStats" type="Label" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer/HBox/StatsPanel/StatsHBox" unique_id=1410065408]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_ylkvr")
theme_override_font_sizes/font_size = 10
text = "Level
@@ -80,8 +109,9 @@ INT
WIS
LCK"
[node name="LabelBaseStatsValue" type="Label" parent="InventoryContainer/MarginContainer/VBoxContainer/HBox/StatsPanel/StatsHBox" unique_id=-1884901888]
[node name="LabelBaseStatsValue" type="Label" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer/HBox/StatsPanel/StatsHBox" unique_id=-1884901888]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_ylkvr")
theme_override_font_sizes/font_size = 10
text = "1
@@ -96,8 +126,9 @@ text = "1
10"
horizontal_alignment = 2
[node name="LabelDerivedStats" type="Label" parent="InventoryContainer/MarginContainer/VBoxContainer/HBox/StatsPanel/StatsHBox" unique_id=-884901888]
[node name="LabelDerivedStats" type="Label" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer/HBox/StatsPanel/StatsHBox" unique_id=-884901888]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_ylkvr")
theme_override_font_sizes/font_size = 10
text = "XP
Coin
@@ -112,8 +143,9 @@ Sight
SpellAmp
Crit%"
[node name="LabelDerivedStatsValue" type="Label" parent="InventoryContainer/MarginContainer/VBoxContainer/HBox/StatsPanel/StatsHBox" unique_id=115098112]
[node name="LabelDerivedStatsValue" type="Label" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer/HBox/StatsPanel/StatsHBox" unique_id=115098112]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_ylkvr")
theme_override_font_sizes/font_size = 10
text = "0/100
0
@@ -129,60 +161,73 @@ text = "0/100
12.0%"
horizontal_alignment = 2
[node name="InventoryPanel" type="VBoxContainer" parent="InventoryContainer/MarginContainer/VBoxContainer/HBox" unique_id=1115098112]
[node name="InventoryPanel" type="VBoxContainer" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer/HBox" unique_id=1115098112]
custom_minimum_size = Vector2(400, 0)
layout_mode = 2
theme_override_constants/separation = 5
[node name="EquipmentLabel" type="Label" parent="InventoryContainer/MarginContainer/VBoxContainer/HBox/InventoryPanel" unique_id=2115098112]
[node name="EquipmentLabel" type="Label" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer/HBox/InventoryPanel" unique_id=2115098112]
layout_mode = 2
theme_override_font_sizes/font_size = 14
theme_override_fonts/font = ExtResource("2_ylkvr")
theme_override_font_sizes/font_size = 16
text = "Equipment"
[node name="EquipmentSpacer" type="Control" parent="InventoryContainer/MarginContainer/VBoxContainer/HBox/InventoryPanel" unique_id=3000000001]
[node name="EquipmentSpacer" type="Control" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer/HBox/InventoryPanel" unique_id=-1294967295]
custom_minimum_size = Vector2(0, 8)
layout_mode = 2
[node name="EquipmentPanel" type="GridContainer" parent="InventoryContainer/MarginContainer/VBoxContainer/HBox/InventoryPanel" unique_id=-1179869184]
[node name="EquipmentPanel" type="GridContainer" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer/HBox/InventoryPanel" unique_id=-1179869184]
layout_mode = 2
theme_override_constants/h_separation = 15
theme_override_constants/v_separation = 15
columns = 3
[node name="EquipmentBottomSpacer" type="Control" parent="InventoryContainer/MarginContainer/VBoxContainer/HBox/InventoryPanel" unique_id=3000000002]
[node name="EquipmentBottomSpacer" type="Control" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer/HBox/InventoryPanel" unique_id=-1294967294]
custom_minimum_size = Vector2(0, 8)
layout_mode = 2
[node name="InventoryLabel" type="Label" parent="InventoryContainer/MarginContainer/VBoxContainer/HBox/InventoryPanel" unique_id=-179869184]
[node name="InventoryLabel" type="Label" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer/HBox/InventoryPanel" unique_id=-179869184]
layout_mode = 2
theme_override_font_sizes/font_size = 14
theme_override_fonts/font = ExtResource("2_ylkvr")
theme_override_font_sizes/font_size = 16
text = "Inventory"
[node name="InventoryScroll" type="ScrollContainer" parent="InventoryContainer/MarginContainer/VBoxContainer/HBox/InventoryPanel" unique_id=820130816]
[node name="InventoryScroll" type="ScrollContainer" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer/HBox/InventoryPanel" unique_id=820130816]
custom_minimum_size = Vector2(380, 120)
layout_mode = 2
[node name="InventoryVBox" type="VBoxContainer" parent="InventoryContainer/MarginContainer/VBoxContainer/HBox/InventoryPanel/InventoryScroll" unique_id=1820130816]
[node name="InventoryVBox" type="VBoxContainer" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer/HBox/InventoryPanel/InventoryScroll" unique_id=1820130816]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/separation = -4
[node name="SelectionRectangle" type="Panel" parent="InventoryContainer/MarginContainer/VBoxContainer" unique_id=-1474836480]
[node name="SelectionRectangle" type="Panel" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer" unique_id=-1474836480]
z_index = 100
custom_minimum_size = Vector2(38, 38)
layout_mode = 2
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_selection")
[node name="InfoPanel" type="VBoxContainer" parent="InventoryContainer/MarginContainer/VBoxContainer" unique_id=-474836480]
[node name="InfoPanel" type="VBoxContainer" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer" unique_id=-474836480]
custom_minimum_size = Vector2(0, 80)
layout_mode = 2
[node name="InfoLabel" type="Label" parent="InventoryContainer/MarginContainer/VBoxContainer/InfoPanel" unique_id=525163520]
[node name="InfoLabel" type="Label" parent="InventoryContainer/MarginContainer/MarginContainer/VBoxContainer/InfoPanel" unique_id=525163520]
custom_minimum_size = Vector2(300, 64)
layout_mode = 2
size_flags_vertical = 3
theme_override_font_sizes/font_size = 10
theme_override_fonts/font = ExtResource("2_ylkvr")
theme_override_font_sizes/font_size = 8
vertical_alignment = 1
autowrap_mode = 3
[node name="SfxPotion" type="AudioStreamPlayer2D" parent="." unique_id=370835589]
stream = ExtResource("3_eicjl")
volume_db = 9.724
[node name="SfxFood" type="AudioStreamPlayer2D" parent="." unique_id=1396668527]
stream = SubResource("AudioStreamRandomizer_8wyaw")
[node name="SfxArmour" type="AudioStreamPlayer2D" parent="." unique_id=1756569602]
stream = SubResource("AudioStreamRandomizer_cwdri")

View File

@@ -29,15 +29,27 @@
[ext_resource type="AudioStream" uid="uid://4vulahdsj4i2" path="res://assets/audio/sfx/swoosh/throw_01.wav.mp3" id="27_31cv2"]
[ext_resource type="AudioStream" uid="uid://w6yon88kjfml" path="res://assets/audio/sfx/nickes/lift_sfx.ogg" id="28_pf23h"]
[sub_resource type="Gradient" id="Gradient_wqfne"]
colors = PackedColorArray(0, 0, 0, 1, 1, 0.13732082, 0.092538536, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_wnwbv"]
gradient = SubResource("Gradient_wqfne")
fill_from = Vector2(0.46153846, 0.87606835)
fill_to = Vector2(0.46153846, 0.11965812)
[sub_resource type="Gradient" id="Gradient_jej6c"]
offsets = PackedFloat32Array(0.7710843, 0.77710843)
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_f1ej7"]
gradient = SubResource("Gradient_jej6c")
use_hdr = true
fill = 1
fill_from = Vector2(0.51304346, 0.51304346)
fill_to = Vector2(0.9391304, 0.08260869)
fill_to = Vector2(0.8974359, 0.08547009)
[sub_resource type="CircleShape2D" id="CircleShape2D_pf23h"]
radius = 32.0
[sub_resource type="Gradient" id="Gradient_3v2ag"]
colors = PackedColorArray(0, 0, 0, 1, 0, 0, 0, 0)
@@ -84,10 +96,29 @@ collision_mask = 67
motion_mode = 1
script = ExtResource("1")
[node name="PointLight2D" type="PointLight2D" parent="." unique_id=1250823818]
[node name="Sprite2D" type="Sprite2D" parent="." unique_id=720799975]
visible = false
position = Vector2(1.499999, -2.0000038)
scale = Vector2(1.984375, 2.0937502)
texture = SubResource("GradientTexture2D_wnwbv")
[node name="ConeLight" type="PointLight2D" parent="." unique_id=120780131]
blend_mode = 2
shadow_enabled = true
[node name="PointLight2D" type="PointLight2D" parent="." unique_id=1250823818]
position = Vector2(-1, 0)
blend_mode = 2
shadow_enabled = true
texture = SubResource("GradientTexture2D_f1ej7")
[node name="LightCollision" type="Area2D" parent="PointLight2D" unique_id=502090625]
collision_layer = 0
collision_mask = 16384
[node name="CollisionShape2D" type="CollisionShape2D" parent="PointLight2D/LightCollision" unique_id=1350075834]
shape = SubResource("CircleShape2D_pf23h")
[node name="Shadow" type="Sprite2D" parent="." unique_id=937683521]
z_index = -1
position = Vector2(0, 7)
@@ -216,3 +247,11 @@ stream = ExtResource("28_pf23h")
max_distance = 1246.0
attenuation = 6.964403
panning_strength = 1.11
[node name="DirectionalLight2D" type="DirectionalLight2D" parent="." unique_id=1013099358]
visible = false
rotation = 3.1869712
energy = 0.13
blend_mode = 2
shadow_enabled = true
max_distance = 100.0