cirnogodot/Scenes/Props/Box_Red.tscn

45 lines
1.6 KiB
Text
Raw Normal View History

2024-06-09 18:19:57 +02:00
[gd_scene load_steps=7 format=3 uid="uid://bgk7fgwiis425"]
2024-06-09 00:56:25 +02:00
2025-02-24 11:37:45 +01:00
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_flhlf"]
2025-01-21 15:17:26 +01:00
[ext_resource type="PackedScene" uid="uid://dpaobtgb3l4ft" path="res://Scenes/Props/Box_Red_Broken.tscn" id="2_baxfl"]
2024-06-09 00:56:25 +02:00
[ext_resource type="Texture2D" uid="uid://c1djpk8lbgjfe" path="res://Sprites/Box_Red.png" id="2_g1pum"]
2024-06-09 18:19:57 +02:00
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_mbs7l"]
2024-06-09 00:56:25 +02:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
size = Vector2(11, 14)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
2025-01-21 15:17:26 +01:00
size = Vector2(12, 10)
2024-06-09 00:56:25 +02:00
2024-06-09 11:45:22 +02:00
[node name="Red Box" type="Area2D" groups=["Destroyable"]]
2024-06-09 00:56:25 +02:00
collision_layer = 64
collision_mask = 10
script = ExtResource("1_flhlf")
2024-06-09 11:45:22 +02:00
Health = 4.0
ExplosionRadius = 0.0
ExplosionDamage = 0.0
DebrisScene = ExtResource("2_baxfl")
2024-06-09 18:19:57 +02:00
ExplosionParticles = ExtResource("3_mbs7l")
2024-06-09 00:56:25 +02:00
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
position = Vector2(0.5, -1)
shape = SubResource("RectangleShape2D_2ewfl")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("2_g1pum")
[node name="RigidBody2D" type="RigidBody2D" parent="."]
collision_layer = 64
collision_mask = 10
gravity_scale = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
2025-01-21 15:17:26 +01:00
position = Vector2(0, -3)
2024-06-09 00:56:25 +02:00
shape = SubResource("RectangleShape2D_ss2y0")
2025-02-04 13:22:05 +01:00
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
2025-02-11 17:55:50 +01:00
visible = false
2025-02-04 13:22:05 +01:00
radius = 8.36
vertices = PackedVector2Array(-6, -9, 6, -9, 6, 2, -6, 2)