New Barrels

This commit is contained in:
Marco 2025-05-23 11:34:43 +02:00
commit e79aab45ec
11 changed files with 255 additions and 10 deletions

View file

@ -1,18 +1,14 @@
[gd_scene load_steps=9 format=3 uid="uid://bj28qiai2x2ar"]
[gd_scene load_steps=8 format=3 uid="uid://bj28qiai2x2ar"]
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" 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="Resource" uid="uid://ncukdupc7hbm" path="res://Resources/Bullets/Explosion.tres" id="4_eyb2j"]
[ext_resource type="Texture2D" uid="uid://du8xcvbnf30o2" path="res://ExternalMaterial/Barrel/Barrels.png" id="5_xyhjh"]
[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)
@ -35,7 +31,8 @@ shape = SubResource("RectangleShape2D_2ewfl")
[node name="Sprite2D" type="Sprite2D" parent="."]
position = Vector2(0, -2)
texture = SubResource("AtlasTexture_v7gy8")
texture = ExtResource("5_xyhjh")
hframes = 4
[node name="RigidBody2D" type="StaticBody2D" parent="." groups=["navigation_polygon_source_geometry_group"]]
collision_layer = 64