cirnogodot/Scenes/Props/Box_Vertical.tscn

63 lines
2 KiB
Text
Raw Permalink Normal View History

2025-03-02 15:37:14 +01:00
[gd_scene load_steps=9 format=3 uid="uid://e80xujqyjoh"]
2025-01-21 22:07:34 +01:00
2025-02-24 11:37:45 +01:00
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_w8rm7"]
2025-03-02 15:37:14 +01:00
[ext_resource type="PackedScene" uid="uid://bkr1rv30ww4xt" path="res://Scenes/Props/Box_Vertical_Broken.tscn" id="2_xajnp"]
2025-01-21 22:07:34 +01:00
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_384ns"]
[ext_resource type="Texture2D" uid="uid://b1xpvkxylpath" path="res://Sprites/Props/VerticalStorage.png" id="4_yhmvo"]
2025-03-02 15:37:14 +01:00
[sub_resource type="AtlasTexture" id="AtlasTexture_xajnp"]
atlas = ExtResource("4_yhmvo")
region = Rect2(0, 0, 16, 32)
[sub_resource type="SpriteFrames" id="SpriteFrames_xu8ef"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_xajnp")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
2025-01-21 22:07:34 +01:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
size = Vector2(14, 28)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
2025-03-05 15:58:15 +01:00
size = Vector2(12, 15)
2025-01-21 22:07:34 +01:00
2025-03-02 15:37:14 +01:00
[node name="Vertical Box" type="Area2D" groups=["Destroyable"]]
2025-02-07 14:58:59 +01:00
y_sort_enabled = true
2025-01-21 22:07:34 +01:00
collision_layer = 64
collision_mask = 10
script = ExtResource("1_w8rm7")
Health = 4.0
ExplosionRadius = 0.0
ExplosionDamage = 0.0
2025-03-02 15:37:14 +01:00
DebrisScene = ExtResource("2_xajnp")
2025-01-21 22:07:34 +01:00
ExplosionParticles = ExtResource("3_384ns")
metadata/_edit_group_ = true
2025-03-02 15:37:14 +01:00
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(0, -9)
sprite_frames = SubResource("SpriteFrames_xu8ef")
2025-01-21 22:07:34 +01:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
position = Vector2(0, -1)
shape = SubResource("RectangleShape2D_2ewfl")
[node name="RigidBody2D" type="RigidBody2D" parent="."]
2025-03-02 15:37:14 +01:00
position = Vector2(0, -9)
2025-01-21 22:07:34 +01:00
collision_layer = 64
collision_mask = 10
gravity_scale = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
2025-03-05 15:58:15 +01:00
position = Vector2(0, 1.5)
2025-01-21 22:07:34 +01:00
shape = SubResource("RectangleShape2D_ss2y0")
2025-03-25 10:54:19 +01:00
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
visible = false
radius = 8.36
vertices = PackedVector2Array(-6, -15, 6, -15, 6, 0, -6, 0)