1 Commits

Author SHA1 Message Date
aa19e8386c feat: lights
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 9s
Create tag and build when new code gets to main / Export (push) Successful in 2m32s
2025-08-03 16:06:31 +02:00
3 changed files with 201 additions and 1 deletions

168
main.tscn
View File

@ -1,4 +1,4 @@
[gd_scene load_steps=128 format=4 uid="uid://s1cx1gvt4bed"]
[gd_scene load_steps=132 format=4 uid="uid://s1cx1gvt4bed"]
[ext_resource type="Script" uid="uid://cvtt52wodbopm" path="res://main.gd" id="1_272bh"]
[ext_resource type="PackedScene" uid="uid://yvp44oauis4n" path="res://player/player.tscn" id="1_ig7tw"]
@ -32,6 +32,7 @@
[ext_resource type="AudioStream" uid="uid://cp2acg3q53jia" path="res://world_assets/audio/ambiance/forestBalade.wav" id="30_htxhm"]
[ext_resource type="AudioStream" uid="uid://bsosrbr0tgg25" path="res://world_assets/audio/ambiance/squelettes.mp3" id="31_jq2sk"]
[ext_resource type="AudioStream" uid="uid://o8kcbs7gk61y" path="res://world_assets/audio/ambiance/cave.wav" id="32_htxhm"]
[ext_resource type="Texture2D" uid="uid://ct4s44kkdg8eh" path="res://world_assets/light.webp" id="33_jq2sk"]
[sub_resource type="AtlasTexture" id="AtlasTexture_ycdy4"]
atlas = ExtResource("3_dg77c")
@ -1331,6 +1332,43 @@ Vector2i(3, 3): {
}
}
[sub_resource type="Animation" id="Animation_4k2k6"]
resource_name = "fire"
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:energy")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.101308, 0.2, 0.345557, 0.401068, 0.519029, 0.602296, 0.734135, 0.802136, 0.902056),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
"update": 0,
"values": [1.0, 0.44, 0.29, 0.68, 0.64, 0.11, 0.34, 0.35, 0.89, 0.3]
}
[sub_resource type="Animation" id="Animation_0rl1p"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".:energy")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [1.0]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ok6jj"]
_data = {
&"RESET": SubResource("Animation_0rl1p"),
&"fire": SubResource("Animation_4k2k6")
}
[node name="Main" type="Node2D"]
script = ExtResource("1_272bh")
@ -1805,6 +1843,134 @@ stream = SubResource("AudioStreamInteractive_4k2k6")
autoplay = true
bus = &"Ambiance"
[node name="Lights" type="Node2D" parent="."]
[node name="BigLight" type="PointLight2D" parent="Lights"]
position = Vector2(-5, -25)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight2" type="PointLight2D" parent="Lights"]
position = Vector2(36, -40)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight3" type="PointLight2D" parent="Lights"]
position = Vector2(-197, -6)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight4" type="PointLight2D" parent="Lights"]
position = Vector2(220, -22)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight5" type="PointLight2D" parent="Lights"]
position = Vector2(310, -21)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight6" type="PointLight2D" parent="Lights"]
position = Vector2(364, -22)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight7" type="PointLight2D" parent="Lights"]
position = Vector2(972, -54)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight8" type="PointLight2D" parent="Lights"]
position = Vector2(1090, -64)
scale = Vector2(0.621094, 0.597656)
texture = ExtResource("33_jq2sk")
[node name="BigLight9" type="PointLight2D" parent="Lights"]
position = Vector2(1627, -69)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight10" type="PointLight2D" parent="Lights"]
position = Vector2(1639, -21)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight11" type="PointLight2D" parent="Lights"]
position = Vector2(1755, -38)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight12" type="PointLight2D" parent="Lights"]
position = Vector2(1996, -86)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight13" type="PointLight2D" parent="Lights"]
position = Vector2(2007, -53)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight20" type="PointLight2D" parent="Lights"]
position = Vector2(2007, -53)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight14" type="PointLight2D" parent="Lights"]
position = Vector2(2079, -137)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight21" type="PointLight2D" parent="Lights"]
position = Vector2(1184, -22)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight22" type="PointLight2D" parent="Lights"]
position = Vector2(590, -27)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight23" type="PointLight2D" parent="Lights"]
position = Vector2(297, -99)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight24" type="PointLight2D" parent="Lights"]
position = Vector2(-250, -44)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight15" type="PointLight2D" parent="Lights"]
position = Vector2(2124, -52)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight16" type="PointLight2D" parent="Lights"]
position = Vector2(2167, -21)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight17" type="PointLight2D" parent="Lights"]
position = Vector2(2188, -39)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight18" type="PointLight2D" parent="Lights"]
position = Vector2(5236, -65)
scale = Vector2(0.5, 0.5)
texture = ExtResource("33_jq2sk")
[node name="BigLight19" type="PointLight2D" parent="Lights"]
position = Vector2(5384, -20)
scale = Vector2(1.07227, 1.00586)
texture = ExtResource("33_jq2sk")
[node name="AnimationPlayer" type="AnimationPlayer" parent="Lights/BigLight19"]
libraries = {
&"": SubResource("AnimationLibrary_ok6jj")
}
autoplay = "fire"
[connection signal="dialogue_ended" from="OpeningDialogue" to="Player" method="_on_dialogue_manager_dialogue_ended"]
[connection signal="dialogue_ended" from="NPCFirstDialogue" to="ShieldChoice" method="start_choice"]
[connection signal="accepted" from="ShieldChoice" to="NPCShieldDialogue" method="on_dialogue_started"]

BIN
world_assets/light.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ct4s44kkdg8eh"
path="res://.godot/imported/light.webp-50bb55d00a8b3a29138779420ca586be.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://world_assets/light.webp"
dest_files=["res://.godot/imported/light.webp-50bb55d00a8b3a29138779420ca586be.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1