mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-13 23:15:55 +00:00
Vending Machines
This commit is contained in:
parent
e25da0fe16
commit
d020b067af
16 changed files with 249 additions and 34 deletions
|
|
@ -1,8 +1,11 @@
|
|||
[gd_scene load_steps=10 format=3 uid="uid://cl7s06sk106uo"]
|
||||
[gd_scene load_steps=13 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="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")
|
||||
|
|
@ -39,14 +42,12 @@ 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")
|
||||
[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="."]
|
||||
|
|
@ -61,11 +62,10 @@ visible = false
|
|||
position = Vector2(0, -8)
|
||||
shape = SubResource("RectangleShape2D_0nhpj")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
[node name="RigidBody2D" type="StaticBody2D" parent="."]
|
||||
position = Vector2(0, -8)
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
visible = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue