cirnogodot/Scenes/Actors/ForceField_Horizontal.tscn
2025-02-24 14:36:30 +01:00

178 lines
5.1 KiB
Text

[gd_scene load_steps=25 format=3 uid="uid://b0gpbkxdfbnjh"]
[ext_resource type="Script" uid="uid://b2bpqbfeqi4ge" path="res://Scripts/Activables/ForceField.cs" id="1_yxhr6"]
[ext_resource type="Texture2D" uid="uid://gc24sjyj47x6" path="res://Sprites/Actors/ForceFieldHorizontal.png" id="2_12wxm"]
[ext_resource type="Shader" uid="uid://0ruey5bjl7mh" path="res://Shaders/Blink.gdshader" id="2_q7pky"]
[ext_resource type="Shader" uid="uid://cjdl1m3psohju" path="res://Shaders/scanlines_static.tres" id="2_qbobr"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_fipgw"]
shader = ExtResource("2_q7pky")
shader_parameter/blink_color = Color(0, 0, 0, 1)
shader_parameter/blink_intensity = 0.0
shader_parameter/teleport_progress = 0.0
shader_parameter/scanline_density = 50.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_yl7re"]
shader = ExtResource("2_qbobr")
[sub_resource type="AtlasTexture" id="AtlasTexture_gecst"]
atlas = ExtResource("2_12wxm")
region = Rect2(0, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_g2dl7"]
atlas = ExtResource("2_12wxm")
region = Rect2(32, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_0mu7k"]
atlas = ExtResource("2_12wxm")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_drt56"]
atlas = ExtResource("2_12wxm")
region = Rect2(224, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_vjndy"]
atlas = ExtResource("2_12wxm")
region = Rect2(192, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_83rc5"]
atlas = ExtResource("2_12wxm")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_b6r7h"]
atlas = ExtResource("2_12wxm")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_k15wc"]
atlas = ExtResource("2_12wxm")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_26ncf"]
atlas = ExtResource("2_12wxm")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_hui6k"]
atlas = ExtResource("2_12wxm")
region = Rect2(64, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_djxwi"]
atlas = ExtResource("2_12wxm")
region = Rect2(96, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_j1q4l"]
atlas = ExtResource("2_12wxm")
region = Rect2(128, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_nfeg1"]
atlas = ExtResource("2_12wxm")
region = Rect2(160, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_uxj7e"]
atlas = ExtResource("2_12wxm")
region = Rect2(192, 0, 32, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_bwgur"]
atlas = ExtResource("2_12wxm")
region = Rect2(224, 0, 32, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_h2s1d"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_gecst")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_g2dl7")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_0mu7k")
}],
"loop": true,
"name": &"Closed",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_drt56")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_vjndy")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_83rc5")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_b6r7h")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_k15wc")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_26ncf")
}],
"loop": false,
"name": &"Closing",
"speed": 5.0
}, {
"frames": [],
"loop": true,
"name": &"Open",
"speed": 5.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_hui6k")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_djxwi")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_j1q4l")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_nfeg1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uxj7e")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_bwgur")
}],
"loop": false,
"name": &"Opening",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0wg11"]
size = Vector2(32, 32)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_f2rl6"]
size = Vector2(32, 32)
[node name="HorizontalForceField" type="Area2D" groups=["Solid"]]
collision_layer = 64
collision_mask = 154
script = ExtResource("1_yxhr6")
TurnOffMaterial = SubResource("ShaderMaterial_fipgw")
ActiveMaterial = SubResource("ShaderMaterial_yl7re")
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
modulate = Color(1, 1, 1, 0.784314)
sprite_frames = SubResource("SpriteFrames_h2s1d")
animation = &"Closed"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
shape = SubResource("RectangleShape2D_0wg11")
[node name="RigidBody2D" type="RigidBody2D" parent="."]
collision_layer = 64
collision_mask = 10
gravity_scale = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
visible = false
shape = SubResource("RectangleShape2D_f2rl6")
[connection signal="animation_changed" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"]