cirnogodot/Scenes/Props/VendingMachine.tscn
2025-04-25 11:29:21 +02:00

73 lines
2.5 KiB
Text

[gd_scene load_steps=13 format=3 uid="uid://cl7s06sk106uo"]
[ext_resource type="Script" uid="uid://bg20enqj6y6c8" path="res://Scripts/Actors/VendingMachine.cs" id="1_hlj8y"]
[ext_resource type="PackedScene" uid="uid://ca0g1jnl6n0pl" path="res://Scenes/HUD/VendingMachineUi.tscn" id="2_lo43l"]
[ext_resource type="Texture2D" uid="uid://cg75fgm412pt7" path="res://Sprites/Props/VendingMachine.png" id="3_1necu"]
[ext_resource type="Resource" uid="uid://clr1gln7nxa1o" path="res://Resources/Items/Power_Pickup.tres" id="3_oeilh"]
[ext_resource type="Resource" uid="uid://dodwpect0ldjf" path="res://Resources/Items/Heart_Pickup.tres" id="4_8fr44"]
[ext_resource type="Resource" uid="uid://bhbufxodybsw4" path="res://Resources/Items/Shield_Pickup.tres" id="5_0a7ay"]
[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", "Interactable"]]
collision_layer = 4
collision_mask = 0
script = ExtResource("1_hlj8y")
UiScene = ExtResource("2_lo43l")
Items = Array[Object]([ExtResource("3_oeilh"), ExtResource("4_8fr44"), ExtResource("5_0a7ay")])
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="StaticBody2D" parent="."]
position = Vector2(0, -8)
collision_layer = 64
collision_mask = 10
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
visible = false
position = Vector2(0.5, -3)
shape = SubResource("RectangleShape2D_vguns")