cirnogodot/Scenes/Props/Barrel.tscn

47 lines
1.7 KiB
Text
Raw Normal View History

2025-02-21 16:27:57 +01:00
[gd_scene load_steps=9 format=3 uid="uid://bj28qiai2x2ar"]
2024-05-26 18:34:44 +02:00
2025-02-24 11:37:45 +01:00
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_avwdx"]
2024-05-26 18:34:44 +02:00
[ext_resource type="Texture2D" uid="uid://d2f16ke8c7vwx" path="res://Sprites/Barrel.png" id="1_e66t6"]
2025-01-21 15:17:26 +01:00
[ext_resource type="PackedScene" uid="uid://clyyl3jgpfoo7" path="res://Scenes/Props/Broken_Barrel.tscn" id="2_f145b"]
2024-06-09 18:19:57 +02:00
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_sm378"]
2025-02-21 16:27:57 +01:00
[ext_resource type="Resource" uid="uid://ncukdupc7hbm" path="res://Resources/Bullets/Explosion.tres" id="4_eyb2j"]
2024-05-26 18:34:44 +02:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
size = Vector2(11, 14)
[sub_resource type="AtlasTexture" id="AtlasTexture_v7gy8"]
atlas = ExtResource("1_e66t6")
region = Rect2(0, 0, 16, 16)
2024-06-09 00:34:36 +02:00
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
size = Vector2(11, 14)
[node name="Barrel" type="Area2D" groups=["Destroyable"]]
2024-05-26 18:34:44 +02:00
collision_layer = 64
2024-08-18 11:33:17 +02:00
collision_mask = 138
2024-06-09 00:34:36 +02:00
script = ExtResource("1_avwdx")
2024-06-09 11:45:22 +02:00
Health = 2.0
2025-02-09 21:34:50 +01:00
ExplosionRadius = 4.0
ExplosionDamage = 3.0
2024-06-09 11:45:22 +02:00
DebrisScene = ExtResource("2_f145b")
2024-06-09 18:19:57 +02:00
ExplosionParticles = ExtResource("3_sm378")
2025-02-21 16:27:57 +01:00
ExplosionData = ExtResource("4_eyb2j")
2024-05-26 18:34:44 +02:00
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
2024-06-02 23:35:28 +02:00
visible = false
2024-05-26 18:34:44 +02:00
position = Vector2(0.5, -1)
shape = SubResource("RectangleShape2D_2ewfl")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = SubResource("AtlasTexture_v7gy8")
2024-06-09 00:34:36 +02:00
[node name="RigidBody2D" type="RigidBody2D" parent="."]
collision_layer = 64
collision_mask = 10
gravity_scale = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
visible = false
position = Vector2(0.5, -1)
shape = SubResource("RectangleShape2D_ss2y0")