cirnogodot/Scenes/Props/Box_Green.tscn

60 lines
2 KiB
Text
Raw Permalink Normal View History

2025-02-24 18:35:27 +01:00
[gd_scene load_steps=9 format=3 uid="uid://dgc82vibqhrx"]
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_jieco"]
[ext_resource type="PackedScene" uid="uid://clgvpqptouacr" path="res://Scenes/Props/Box_Green_Broken.tscn" id="2_jieco"]
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_2gaf4"]
[ext_resource type="Texture2D" uid="uid://b54b6h75odxo7" path="res://Sprites/Box_Green.png" id="4_jieco"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
size = Vector2(11, 14)
[sub_resource type="AtlasTexture" id="AtlasTexture_rthmv"]
atlas = ExtResource("4_jieco")
region = Rect2(0, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_2gaf4"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_rthmv")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
size = Vector2(12, 10)
[node name="Green Box" type="Area2D" groups=["Destroyable"]]
collision_layer = 64
collision_mask = 10
script = ExtResource("1_jieco")
Health = 4.0
ExplosionRadius = 0.0
ExplosionDamage = 0.0
DebrisScene = ExtResource("2_jieco")
ExplosionParticles = ExtResource("3_2gaf4")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
position = Vector2(0.5, -1)
shape = SubResource("RectangleShape2D_2ewfl")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_2gaf4")
2025-04-09 16:41:22 +02:00
[node name="RigidBody2D" type="StaticBody2D" parent="."]
2025-02-24 18:35:27 +01:00
visible = false
collision_layer = 64
collision_mask = 10
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
position = Vector2(0, -3)
shape = SubResource("RectangleShape2D_ss2y0")
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
visible = false
radius = 8.36
2025-03-25 10:54:19 +01:00
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)