mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-16 20:23:48 +00:00
Mapping new door and vending machine
This commit is contained in:
parent
42b51d93dd
commit
07353e1787
15 changed files with 478 additions and 44 deletions
73
Scenes/Props/VendingMachine.tscn
Normal file
73
Scenes/Props/VendingMachine.tscn
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
[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")
|
||||
50
Scenes/Props/VendingMachine_Broken.tscn
Normal file
50
Scenes/Props/VendingMachine_Broken.tscn
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://dlnw4ear5tsv3"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_ggfb7"]
|
||||
[ext_resource type="Texture2D" uid="uid://cg75fgm412pt7" path="res://Sprites/Props/VendingMachine.png" id="2_ggfb7"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n2q42"]
|
||||
atlas = ExtResource("2_ggfb7")
|
||||
region = Rect2(48, 0, 16, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_n5h7c"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_n2q42")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0nhpj"]
|
||||
size = Vector2(6, 24)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_vguns"]
|
||||
size = Vector2(6, 20)
|
||||
|
||||
[node name="VendingMachineBroken" type="Area2D" groups=["Destroyable"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
script = ExtResource("1_ggfb7")
|
||||
Indestructible = true
|
||||
Health = 8.0
|
||||
ExplosionRadius = 0.0
|
||||
ExplosionDamage = 0.0
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_n5h7c")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_0nhpj")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
position = Vector2(0, -3)
|
||||
shape = SubResource("RectangleShape2D_vguns")
|
||||
Loading…
Add table
Add a link
Reference in a new issue