mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 09:55:35 +00:00
New Barrels
This commit is contained in:
parent
83ddef3e5a
commit
e79aab45ec
11 changed files with 255 additions and 10 deletions
Binary file not shown.
Binary file not shown.
BIN
ExternalMaterial/Barrel/Barrels.png
(Stored with Git LFS)
Normal file
BIN
ExternalMaterial/Barrel/Barrels.png
(Stored with Git LFS)
Normal file
Binary file not shown.
34
ExternalMaterial/Barrel/Barrels.png.import
Normal file
34
ExternalMaterial/Barrel/Barrels.png.import
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://du8xcvbnf30o2"
|
||||
path="res://.godot/imported/Barrels.png-03ba2819d65a96f6d366c3d96a690e13.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ExternalMaterial/Barrel/Barrels.png"
|
||||
dest_files=["res://.godot/imported/Barrels.png-03ba2819d65a96f6d366c3d96a690e13.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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
50
Scenes/Props/Barrel_Side_1.tscn
Normal file
50
Scenes/Props/Barrel_Side_1.tscn
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://cgsfnm0jwqka6"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_hbtxw"]
|
||||
[ext_resource type="PackedScene" uid="uid://clyyl3jgpfoo7" path="res://Scenes/Props/Broken_Barrel.tscn" id="2_p7k4c"]
|
||||
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_33vax"]
|
||||
[ext_resource type="Resource" uid="uid://ncukdupc7hbm" path="res://Resources/Bullets/Explosion.tres" id="4_507p0"]
|
||||
[ext_resource type="Texture2D" uid="uid://du8xcvbnf30o2" path="res://ExternalMaterial/Barrel/Barrels.png" id="5_34fq7"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
|
||||
size = Vector2(11, 14)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
|
||||
size = Vector2(11, 14)
|
||||
|
||||
[node name="Barrel" type="Area2D" groups=["Destroyable", "navigation_polygon_source_geometry_group"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 138
|
||||
script = ExtResource("1_hbtxw")
|
||||
Health = 2.0
|
||||
ExplosionRadius = 4.0
|
||||
ExplosionDamage = 3.0
|
||||
DebrisScene = ExtResource("2_p7k4c")
|
||||
ExplosionParticles = ExtResource("3_33vax")
|
||||
ExplosionData = ExtResource("4_507p0")
|
||||
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(0, -2)
|
||||
texture = ExtResource("5_34fq7")
|
||||
hframes = 4
|
||||
frame = 1
|
||||
|
||||
[node name="RigidBody2D" type="StaticBody2D" parent="." groups=["navigation_polygon_source_geometry_group"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -10, 6, -10, 6, 5, -6, 5)
|
||||
50
Scenes/Props/Barrel_Side_2.tscn
Normal file
50
Scenes/Props/Barrel_Side_2.tscn
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://bouoskm3ws2mn"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_eaf8j"]
|
||||
[ext_resource type="PackedScene" uid="uid://clyyl3jgpfoo7" path="res://Scenes/Props/Broken_Barrel.tscn" id="2_xq6ei"]
|
||||
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_vv06d"]
|
||||
[ext_resource type="Resource" uid="uid://ncukdupc7hbm" path="res://Resources/Bullets/Explosion.tres" id="4_t661w"]
|
||||
[ext_resource type="Texture2D" uid="uid://du8xcvbnf30o2" path="res://ExternalMaterial/Barrel/Barrels.png" id="5_hl0mm"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
|
||||
size = Vector2(11, 14)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
|
||||
size = Vector2(11, 14)
|
||||
|
||||
[node name="Barrel" type="Area2D" groups=["Destroyable", "navigation_polygon_source_geometry_group"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 138
|
||||
script = ExtResource("1_eaf8j")
|
||||
Health = 2.0
|
||||
ExplosionRadius = 4.0
|
||||
ExplosionDamage = 3.0
|
||||
DebrisScene = ExtResource("2_xq6ei")
|
||||
ExplosionParticles = ExtResource("3_vv06d")
|
||||
ExplosionData = ExtResource("4_t661w")
|
||||
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(0, -2)
|
||||
texture = ExtResource("5_hl0mm")
|
||||
hframes = 4
|
||||
frame = 2
|
||||
|
||||
[node name="RigidBody2D" type="StaticBody2D" parent="." groups=["navigation_polygon_source_geometry_group"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -10, 6, -10, 6, 5, -6, 5)
|
||||
50
Scenes/Props/Barrel_Side_3.tscn
Normal file
50
Scenes/Props/Barrel_Side_3.tscn
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://bh1h8jatbrt0f"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_v8x6j"]
|
||||
[ext_resource type="PackedScene" uid="uid://clyyl3jgpfoo7" path="res://Scenes/Props/Broken_Barrel.tscn" id="2_x57xm"]
|
||||
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_56r7h"]
|
||||
[ext_resource type="Resource" uid="uid://ncukdupc7hbm" path="res://Resources/Bullets/Explosion.tres" id="4_tyh4b"]
|
||||
[ext_resource type="Texture2D" uid="uid://du8xcvbnf30o2" path="res://ExternalMaterial/Barrel/Barrels.png" id="5_oyl16"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
|
||||
size = Vector2(11, 14)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
|
||||
size = Vector2(11, 14)
|
||||
|
||||
[node name="Barrel" type="Area2D" groups=["Destroyable", "navigation_polygon_source_geometry_group"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 138
|
||||
script = ExtResource("1_v8x6j")
|
||||
Health = 2.0
|
||||
ExplosionRadius = 4.0
|
||||
ExplosionDamage = 3.0
|
||||
DebrisScene = ExtResource("2_x57xm")
|
||||
ExplosionParticles = ExtResource("3_56r7h")
|
||||
ExplosionData = ExtResource("4_tyh4b")
|
||||
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(0, -2)
|
||||
texture = ExtResource("5_oyl16")
|
||||
hframes = 4
|
||||
frame = 3
|
||||
|
||||
[node name="RigidBody2D" type="StaticBody2D" parent="." groups=["navigation_polygon_source_geometry_group"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -10, 6, -10, 6, 5, -6, 5)
|
||||
53
Scenes/Props/Stacked_Barrel.tscn
Normal file
53
Scenes/Props/Stacked_Barrel.tscn
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://dadcrgxu45wow"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_d2xog"]
|
||||
[ext_resource type="PackedScene" uid="uid://clyyl3jgpfoo7" path="res://Scenes/Props/Broken_Barrel.tscn" id="2_57llw"]
|
||||
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_qfay4"]
|
||||
[ext_resource type="Resource" uid="uid://ncukdupc7hbm" path="res://Resources/Bullets/Explosion.tres" id="4_ofpp8"]
|
||||
[ext_resource type="Texture2D" uid="uid://du8xcvbnf30o2" path="res://ExternalMaterial/Barrel/Barrels.png" id="5_3cpto"]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
|
||||
size = Vector2(11, 14)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
|
||||
size = Vector2(11, 14)
|
||||
|
||||
[node name="Barrel" type="Area2D" groups=["Destroyable", "navigation_polygon_source_geometry_group"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 138
|
||||
script = ExtResource("1_d2xog")
|
||||
Health = 2.0
|
||||
ExplosionRadius = 4.0
|
||||
ExplosionDamage = 3.0
|
||||
DebrisScene = ExtResource("2_57llw")
|
||||
ExplosionParticles = ExtResource("3_qfay4")
|
||||
ExplosionData = ExtResource("4_ofpp8")
|
||||
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(0, -2)
|
||||
texture = ExtResource("5_3cpto")
|
||||
hframes = 4
|
||||
|
||||
[node name="Sprite2D2" type="Sprite2D" parent="."]
|
||||
position = Vector2(1, -12)
|
||||
texture = ExtResource("5_3cpto")
|
||||
hframes = 4
|
||||
|
||||
[node name="RigidBody2D" type="StaticBody2D" parent="." groups=["navigation_polygon_source_geometry_group"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
visible = false
|
||||
position = Vector2(0.5, -1)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -10, 6, -10, 6, 5, -6, 5)
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -1,4 +1,4 @@
|
|||
[gd_resource type="TileSet" load_steps=96 format=3 uid="uid://6k28roiljylj"]
|
||||
[gd_resource type="TileSet" load_steps=100 format=3 uid="uid://6k28roiljylj"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bty7p61v46chx" path="res://Resources/Textures/Tilemap_Canvas.tres" id="1_u4jco"]
|
||||
[ext_resource type="PackedScene" uid="uid://bj28qiai2x2ar" path="res://Scenes/Props/Barrel.tscn" id="2_cxg4b"]
|
||||
|
|
@ -24,8 +24,12 @@
|
|||
[ext_resource type="PackedScene" uid="uid://bs1s0wrvtng0b" path="res://Scenes/Props/Stacked_Box_Red.tscn" id="14_7jj0l"]
|
||||
[ext_resource type="PackedScene" uid="uid://c0823tt86vjcm" path="res://Scenes/Props/Stacked_Box_Blue.tscn" id="15_egwuh"]
|
||||
[ext_resource type="PackedScene" uid="uid://0xqdeirmsh0t" path="res://Scenes/Props/Stacked_Box_Yellow.tscn" id="16_6xcdi"]
|
||||
[ext_resource type="PackedScene" uid="uid://cgsfnm0jwqka6" path="res://Scenes/Props/Barrel_Side_1.tscn" id="17_oeq44"]
|
||||
[ext_resource type="PackedScene" uid="uid://bouoskm3ws2mn" path="res://Scenes/Props/Barrel_Side_2.tscn" id="18_xc1ek"]
|
||||
[ext_resource type="Texture2D" uid="uid://v310x6wx801b" path="res://Tilesets/Beams2.png" id="19_hupu0"]
|
||||
[ext_resource type="PackedScene" uid="uid://bh1h8jatbrt0f" path="res://Scenes/Props/Barrel_Side_3.tscn" id="19_mn5lg"]
|
||||
[ext_resource type="Texture2D" uid="uid://buq811bhduevx" path="res://ExternalMaterial/Decals/Decals.png" id="20_hfdld"]
|
||||
[ext_resource type="PackedScene" uid="uid://dadcrgxu45wow" path="res://Scenes/Props/Stacked_Barrel.tscn" id="20_tgfx8"]
|
||||
[ext_resource type="Texture2D" uid="uid://bku3l81bie67j" path="res://ExternalMaterial/Tubes/Tubes.png" id="21_tnjhd"]
|
||||
[ext_resource type="Texture2D" uid="uid://c741ej5hhmpv4" path="res://Tilesets/Conveyors.png" id="21_u4jco"]
|
||||
[ext_resource type="Texture2D" uid="uid://bohhuql3vrkws" path="res://Tilesets/Solid_Blocks.png" id="22_y1d7q"]
|
||||
|
|
@ -1285,6 +1289,10 @@ scenes/19/scene = ExtResource("12_hmcyg")
|
|||
scenes/20/scene = ExtResource("14_7jj0l")
|
||||
scenes/21/scene = ExtResource("15_egwuh")
|
||||
scenes/22/scene = ExtResource("16_6xcdi")
|
||||
scenes/23/scene = ExtResource("17_oeq44")
|
||||
scenes/24/scene = ExtResource("18_xc1ek")
|
||||
scenes/25/scene = ExtResource("19_mn5lg")
|
||||
scenes/26/scene = ExtResource("20_tgfx8")
|
||||
|
||||
[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_tnjhd"]
|
||||
texture = ExtResource("20_hfdld")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue