This commit is contained in:
MaddoScientisto 2025-01-21 22:07:34 +01:00
commit 83e8b9081c
7 changed files with 96 additions and 4 deletions

View file

@ -113,6 +113,7 @@ sprite_frames = SubResource("SpriteFrames_keeml")
animation = &"Open"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
shape = SubResource("RectangleShape2D_0wg11")
[node name="RigidBody2D" type="RigidBody2D" parent="."]
@ -121,6 +122,7 @@ collision_mask = 10
gravity_scale = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
visible = false
shape = SubResource("RectangleShape2D_f2rl6")
[connection signal="animation_changed" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"]

View file

@ -29,11 +29,13 @@ metadata/_edit_group_ = true
texture = SubResource("AtlasTexture_2brqc")
[node name="Damage_HitBox" type="CollisionShape2D" parent="."]
visible = false
shape = SubResource("CircleShape2D_8gtts")
[node name="RigidBody2D" type="RigidBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
visible = false
position = Vector2(0, 5)
shape = SubResource("CircleShape2D_cacb5")
@ -42,6 +44,7 @@ collision_layer = 16
collision_mask = 2
[node name="PlayerDetectionArea" type="CollisionShape2D" parent="PlayerDetection"]
visible = false
shape = SubResource("CircleShape2D_v711r")
[node name="ShootTimer" type="Timer" parent="."]

View file

@ -0,0 +1,41 @@
[gd_scene load_steps=7 format=3 uid="uid://e80xujqyjoh"]
[ext_resource type="Script" path="res://Scenes/Barrel.cs" id="1_w8rm7"]
[ext_resource type="PackedScene" uid="uid://dpaobtgb3l4ft" path="res://Scenes/Props/Box_Red_Broken.tscn" id="2_s8k4s"]
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_384ns"]
[ext_resource type="Texture2D" uid="uid://b1xpvkxylpath" path="res://Sprites/Props/VerticalStorage.png" id="4_yhmvo"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
size = Vector2(14, 28)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
size = Vector2(12, 24)
[node name="Red Box" type="Area2D" groups=["Destroyable"]]
position = Vector2(0, -9)
collision_layer = 64
collision_mask = 10
script = ExtResource("1_w8rm7")
Health = 4.0
ExplosionRadius = 0.0
ExplosionDamage = 0.0
DebrisScene = ExtResource("2_s8k4s")
ExplosionParticles = ExtResource("3_384ns")
metadata/_edit_group_ = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
visible = false
position = Vector2(0, -1)
shape = SubResource("RectangleShape2D_2ewfl")
[node name="Sprite2D" type="Sprite2D" parent="."]
texture = ExtResource("4_yhmvo")
[node name="RigidBody2D" type="RigidBody2D" parent="."]
collision_layer = 64
collision_mask = 10
gravity_scale = 0.0
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
position = Vector2(0, -3)
shape = SubResource("RectangleShape2D_ss2y0")

File diff suppressed because one or more lines are too long

BIN
Sprites/Props/VerticalStorage.aseprite (Stored with Git LFS) Normal file

Binary file not shown.

BIN
Sprites/Props/VerticalStorage.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b1xpvkxylpath"
path="res://.godot/imported/VerticalStorage.png-f137220d724051e8b1f50851f5ad6613.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Sprites/Props/VerticalStorage.png"
dest_files=["res://.godot/imported/VerticalStorage.png-f137220d724051e8b1f50851f5ad6613.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1