mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 09:55:35 +00:00
47 lines
1.7 KiB
Text
47 lines
1.7 KiB
Text
[gd_scene load_steps=9 format=3 uid="uid://bj28qiai2x2ar"]
|
|
|
|
[ext_resource type="Script" path="res://Scenes/Barrel.cs" id="1_avwdx"]
|
|
[ext_resource type="Texture2D" uid="uid://d2f16ke8c7vwx" path="res://Sprites/Barrel.png" id="1_e66t6"]
|
|
[ext_resource type="PackedScene" uid="uid://clyyl3jgpfoo7" path="res://Scenes/Props/Broken_Barrel.tscn" id="2_f145b"]
|
|
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_sm378"]
|
|
[ext_resource type="PackedScene" uid="uid://h11o0et1y54v" path="res://Scenes/Weapons/Bullets/explosion.tscn" id="4_epbro"]
|
|
|
|
[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)
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
|
|
size = Vector2(11, 14)
|
|
|
|
[node name="Barrel" type="Area2D" groups=["Destroyable"]]
|
|
collision_layer = 64
|
|
collision_mask = 138
|
|
script = ExtResource("1_avwdx")
|
|
Health = 2.0
|
|
ExplosionRadius = 4.0
|
|
ExplosionDamage = 3.0
|
|
DebrisScene = ExtResource("2_f145b")
|
|
ExplosionParticles = ExtResource("3_sm378")
|
|
ExplosionScene = ExtResource("4_epbro")
|
|
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 = SubResource("AtlasTexture_v7gy8")
|
|
|
|
[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")
|