interior tiles and scene transitions
This commit is contained in:
@@ -1,7 +1,44 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://cjbbslcx6vjjy"]
|
||||
[gd_scene load_steps=5 format=3 uid="uid://cjbbslcx6vjjy"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b08q3lqbuoolb" path="res://scripts/autoloads/nodes/event_manager.gd" id="1_xplee"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_xplee"]
|
||||
resource_name = "transition"
|
||||
length = 0.5
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("ColorRect:self_modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5),
|
||||
"transitions": PackedFloat32Array(0.5, 0.5),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_swnhv"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("ColorRect:self_modulate")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Color(1, 1, 1, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_gml0k"]
|
||||
_data = {
|
||||
&"RESET": SubResource("Animation_swnhv"),
|
||||
&"transition": SubResource("Animation_xplee")
|
||||
}
|
||||
|
||||
[node name="EventManager" type="CanvasLayer"]
|
||||
script = ExtResource("1_xplee")
|
||||
|
||||
@@ -14,3 +51,8 @@ grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
&"": SubResource("AnimationLibrary_gml0k")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user