2025-03-09 15:13:07 +01:00
|
|
|
[gd_scene load_steps=7 format=3 uid="uid://dwvt4ckmqwqko"]
|
|
|
|
|
|
|
|
|
|
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_1mliv"]
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://cbd17wjvcdvec" path="res://Sprites/Box_Wood.png" id="2_1mliv"]
|
|
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
|
|
|
|
|
size = Vector2(11, 14)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_4fc6y"]
|
|
|
|
|
atlas = ExtResource("2_1mliv")
|
|
|
|
|
region = Rect2(16, 0, 16, 16)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_gn3bd"]
|
|
|
|
|
animations = [{
|
|
|
|
|
"frames": [{
|
|
|
|
|
"duration": 1.0,
|
|
|
|
|
"texture": SubResource("AtlasTexture_4fc6y")
|
|
|
|
|
}],
|
|
|
|
|
"loop": true,
|
|
|
|
|
"name": &"default",
|
|
|
|
|
"speed": 5.0
|
|
|
|
|
}]
|
|
|
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
|
|
|
|
|
size = Vector2(11, 14)
|
|
|
|
|
|
|
|
|
|
[node name="Wood Box Broken" type="Area2D" groups=["Destroyable"]]
|
|
|
|
|
collision_layer = 64
|
|
|
|
|
collision_mask = 10
|
|
|
|
|
script = ExtResource("1_1mliv")
|
|
|
|
|
Health = 2.0
|
|
|
|
|
ExplosionRadius = 0.0
|
|
|
|
|
ExplosionDamage = 0.0
|
|
|
|
|
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_gn3bd")
|
|
|
|
|
|
2025-04-10 12:00:08 +02:00
|
|
|
[node name="RigidBody2D" type="StaticBody2D" parent="."]
|
2025-03-09 15:13:07 +01:00
|
|
|
collision_layer = 64
|
|
|
|
|
collision_mask = 10
|
|
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
|
|
|
|
visible = false
|
|
|
|
|
position = Vector2(0.5, -1)
|
|
|
|
|
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, -7, 6, -7, 6, 7, -6, 7)
|