feat: lights
This commit is contained in:
168
main.tscn
168
main.tscn
@ -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"]
|
||||
|
Reference in New Issue
Block a user