mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-20 19:03:46 +00:00
New Barrels
This commit is contained in:
parent
83ddef3e5a
commit
e79aab45ec
11 changed files with 255 additions and 10 deletions
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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue