Files
fgj-26/Prefabs/Turrets/Placeholders/oni_ph.tscn
T

86 lines
2.5 KiB
Plaintext

[gd_scene load_steps=12 format=3 uid="uid://dmyv5hki78wf7"]
[ext_resource type="Script" uid="uid://c4764ubjc3tan" path="res://Scripts/Turrets/TurretPlaceholder.cs" id="1_eybvl"]
[ext_resource type="Texture2D" uid="uid://c6dl0tlkdtis1" path="res://Assets/Sprites/Characters/Player/oniSheet.png" id="2_eybvl"]
[sub_resource type="AtlasTexture" id="AtlasTexture_o7til"]
atlas = ExtResource("2_eybvl")
region = Rect2(0, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_d2vfx"]
atlas = ExtResource("2_eybvl")
region = Rect2(16, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_oap50"]
atlas = ExtResource("2_eybvl")
region = Rect2(32, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_8du7j"]
atlas = ExtResource("2_eybvl")
region = Rect2(48, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_q65kb"]
atlas = ExtResource("2_eybvl")
region = Rect2(64, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_tw2se"]
atlas = ExtResource("2_eybvl")
region = Rect2(80, 0, 16, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_ebmjs"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_o7til")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_d2vfx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_oap50")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_8du7j")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_q65kb")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_tw2se")
}],
"loop": true,
"name": &"idle",
"speed": 8.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_y5hcb"]
radius = 7.0
[sub_resource type="QuadMesh" id="QuadMesh_5wxv7"]
size = Vector2(100, 100)
[node name="Turret" type="Node2D" node_paths=PackedStringArray("_placementChecker")]
y_sort_enabled = true
texture_filter = 1
script = ExtResource("1_eybvl")
_placementChecker = NodePath("PlacementCollider")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
self_modulate = Color(1, 1, 1, 0.49803922)
sprite_frames = SubResource("SpriteFrames_ebmjs")
animation = &"idle"
autoplay = "idle"
frame_progress = 0.66817015
offset = Vector2(0, -16)
[node name="PlacementCollider" type="Area2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="PlacementCollider"]
position = Vector2(0, -5)
rotation = 1.5707964
shape = SubResource("CircleShape2D_y5hcb")
[node name="MeshInstance2D" type="MeshInstance2D" parent="."]
visible = false
mesh = SubResource("QuadMesh_5wxv7")