cirnogodot/Scenes/Props/VendingMachine.tscn

73 lines
2.2 KiB
Text

[gd_scene load_steps=10 format=3 uid="uid://cl7s06sk106uo"]
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_1necu"]
[ext_resource type="PackedScene" uid="uid://dlnw4ear5tsv3" path="res://Scenes/Props/VendingMachine_Broken.tscn" id="2_1necu"]
[ext_resource type="Texture2D" uid="uid://cg75fgm412pt7" path="res://Sprites/Props/VendingMachine.png" id="3_1necu"]
[sub_resource type="AtlasTexture" id="AtlasTexture_wa2ji"]
atlas = ExtResource("3_1necu")
region = Rect2(0, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_4d1y1"]
atlas = ExtResource("3_1necu")
region = Rect2(16, 0, 16, 32)
[sub_resource type="AtlasTexture" id="AtlasTexture_hlj8y"]
atlas = ExtResource("3_1necu")
region = Rect2(32, 0, 16, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_lo43l"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_wa2ji")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_4d1y1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hlj8y")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0nhpj"]
size = Vector2(14, 24)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vguns"]
size = Vector2(13, 20)
[node name="VendingMachine" type="Area2D" groups=["Destroyable"]]
collision_layer = 64
collision_mask = 10
script = ExtResource("1_1necu")
Health = 8.0
ExplosionRadius = 0.0
ExplosionDamage = 0.0
DebrisScene = ExtResource("2_1necu")
metadata/_edit_group_ = true
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(0, -8)
sprite_frames = SubResource("SpriteFrames_lo43l")
autoplay = "default"
frame = 1
frame_progress = 0.710561
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
position = Vector2(0, -8)
shape = SubResource("RectangleShape2D_0nhpj")
[node name="RigidBody2D" type="RigidBody2D" parent="."]
position = Vector2(0, -8)
collision_layer = 64
collision_mask = 10
gravity_scale = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
visible = false
position = Vector2(0.5, -3)
shape = SubResource("RectangleShape2D_vguns")