60 lines
1.8 KiB
Plaintext
60 lines
1.8 KiB
Plaintext
[gd_scene load_steps=9 format=3 uid="uid://b3kyqvuxmfn8f"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://ddm4gc2g3aj2i" path="res://images/level/objects.png" id="1_xghly"]
|
|
[ext_resource type="Shader" uid="uid://lqq1mg6l1qqe" path="res://game/shaders/black_n_white.gdshader" id="2_4nvxe"]
|
|
|
|
[sub_resource type="GDScript" id="GDScript_4nvxe"]
|
|
script/source = "extends Node2D
|
|
|
|
|
|
func _ready() -> void:
|
|
$AnimatedSprite2D.play(\"default\")
|
|
"
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_2ho61"]
|
|
atlas = ExtResource("1_xghly")
|
|
region = Rect2(0, 0, 32, 32)
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_2ho61"]
|
|
shader = ExtResource("2_4nvxe")
|
|
shader_parameter/black_color = Color(0, 0, 0, 1)
|
|
shader_parameter/white_color = Color(1, 1, 1, 1)
|
|
shader_parameter/switch_colors = false
|
|
shader_parameter/threshold = 0.5
|
|
shader_parameter/speed = 5.0000002375
|
|
shader_parameter/intensity = 0.50000002375
|
|
shader_parameter/scale = 75.0000035625
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_6xx0h"]
|
|
atlas = ExtResource("1_xghly")
|
|
region = Rect2(32, 0, 16, 16)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_b1qtt"]
|
|
atlas = ExtResource("1_xghly")
|
|
region = Rect2(32, 16, 16, 16)
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_f0x6e"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_6xx0h")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("AtlasTexture_b1qtt")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[node name="Fireplace" type="Node2D"]
|
|
script = SubResource("GDScript_4nvxe")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
texture = SubResource("AtlasTexture_2ho61")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
material = SubResource("ShaderMaterial_2ho61")
|
|
position = Vector2(0, 8)
|
|
sprite_frames = SubResource("SpriteFrames_f0x6e")
|