mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
64 lines
2.2 KiB
Text
64 lines
2.2 KiB
Text
[gd_scene load_steps=9 format=3 uid="uid://h6luqwo0u05q"]
|
|
|
|
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_ype3r"]
|
|
[ext_resource type="PackedScene" uid="uid://clyyl3jgpfoo7" path="res://Scenes/Props/Broken_Barrel.tscn" id="2_ercxe"]
|
|
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_pj6sw"]
|
|
[ext_resource type="Resource" uid="uid://ncukdupc7hbm" path="res://Resources/Bullets/Explosion.tres" id="4_0h78u"]
|
|
[ext_resource type="Texture2D" uid="uid://d2f16ke8c7vwx" path="res://Sprites/Barrel.png" id="5_2yrre"]
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
|
|
size = Vector2(11, 14)
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_v7gy8"]
|
|
atlas = ExtResource("5_2yrre")
|
|
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_ype3r")
|
|
Health = 2.0
|
|
ExplosionRadius = 4.0
|
|
ExplosionDamage = 3.0
|
|
DebrisScene = ExtResource("2_ercxe")
|
|
ExplosionParticles = ExtResource("3_pj6sw")
|
|
ExplosionData = ExtResource("4_0h78u")
|
|
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="."]
|
|
position = Vector2(1.88, -2.055)
|
|
texture = SubResource("AtlasTexture_v7gy8")
|
|
|
|
[node name="Sprite2D2" type="Sprite2D" parent="."]
|
|
position = Vector2(-3.92, 2.11)
|
|
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")
|
|
|
|
[node name="ReferenceRect" type="ReferenceRect" parent="."]
|
|
visible = false
|
|
offset_left = -8.0
|
|
offset_top = -8.0
|
|
offset_right = 8.0
|
|
offset_bottom = 8.0
|
|
|
|
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
|
visible = false
|
|
radius = 8.36
|
|
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|