mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-20 18:43:56 +00:00
Stacked Boxes
This commit is contained in:
parent
daaddb4772
commit
791444654a
7 changed files with 239 additions and 35 deletions
64
Scenes/Props/Stacked_Box_Blue.tscn
Normal file
64
Scenes/Props/Stacked_Box_Blue.tscn
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://c0823tt86vjcm"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_3kd53"]
|
||||
[ext_resource type="PackedScene" uid="uid://dsbk2l40er2da" path="res://Scenes/Props/Box_Blue.tscn" id="2_3kd53"]
|
||||
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_besun"]
|
||||
[ext_resource type="Texture2D" uid="uid://btcw1p1hbjsls" path="res://Sprites/Box_Blue.png" id="4_nvdf4"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_djbk4"]
|
||||
atlas = ExtResource("4_nvdf4")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_p2bv2"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_djbk4")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
|
||||
size = Vector2(12, 10)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
|
||||
size = Vector2(11, 19)
|
||||
|
||||
[node name="Blue Box" type="Area2D" groups=["Destroyable"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
script = ExtResource("1_3kd53")
|
||||
Health = 4.0
|
||||
ExplosionRadius = 0.0
|
||||
ExplosionDamage = 0.0
|
||||
DebrisScene = ExtResource("2_3kd53")
|
||||
ExplosionParticles = ExtResource("3_besun")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_p2bv2")
|
||||
|
||||
[node name="AnimatedSprite2D2" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(0, -9)
|
||||
sprite_frames = SubResource("SpriteFrames_p2bv2")
|
||||
|
||||
[node name="RigidBody2D" type="StaticBody2D" parent="."]
|
||||
visible = false
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
position = Vector2(0, -3)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(0.5, -3.5)
|
||||
shape = SubResource("RectangleShape2D_2ewfl")
|
||||
64
Scenes/Props/Stacked_Box_Red.tscn
Normal file
64
Scenes/Props/Stacked_Box_Red.tscn
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://bs1s0wrvtng0b"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_73rhn"]
|
||||
[ext_resource type="PackedScene" uid="uid://bgk7fgwiis425" path="res://Scenes/Props/Box_Red.tscn" id="2_73rhn"]
|
||||
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_e5ubf"]
|
||||
[ext_resource type="Texture2D" uid="uid://c1djpk8lbgjfe" path="res://Sprites/Box_Red.png" id="4_qiccx"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qaqmh"]
|
||||
atlas = ExtResource("4_qiccx")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_mupuc"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qaqmh")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
|
||||
size = Vector2(12, 10)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
|
||||
size = Vector2(11, 19)
|
||||
|
||||
[node name="Red Box" type="Area2D" groups=["Destroyable"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
script = ExtResource("1_73rhn")
|
||||
Health = 4.0
|
||||
ExplosionRadius = 0.0
|
||||
ExplosionDamage = 0.0
|
||||
DebrisScene = ExtResource("2_73rhn")
|
||||
ExplosionParticles = ExtResource("3_e5ubf")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_mupuc")
|
||||
|
||||
[node name="AnimatedSprite2D2" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(0, -9)
|
||||
sprite_frames = SubResource("SpriteFrames_mupuc")
|
||||
|
||||
[node name="RigidBody2D" type="StaticBody2D" parent="."]
|
||||
visible = false
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
position = Vector2(0, -3)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(0.5, -3.5)
|
||||
shape = SubResource("RectangleShape2D_2ewfl")
|
||||
64
Scenes/Props/Stacked_Box_Wood.tscn
Normal file
64
Scenes/Props/Stacked_Box_Wood.tscn
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://pcjp4du4mahg"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_av5po"]
|
||||
[ext_resource type="PackedScene" uid="uid://bx2h6niaxi6mv" path="res://Scenes/Props/Box_Wood.tscn" id="2_av5po"]
|
||||
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_o2nov"]
|
||||
[ext_resource type="Texture2D" uid="uid://cbd17wjvcdvec" path="res://Sprites/Box_Wood.png" id="4_2wrtf"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pic8d"]
|
||||
atlas = ExtResource("4_2wrtf")
|
||||
region = Rect2(0, 0, 16, 16)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_5nv8d"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pic8d")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
|
||||
size = Vector2(12, 10)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
|
||||
size = Vector2(11, 19)
|
||||
|
||||
[node name="Wood Box" type="Area2D" groups=["Destroyable"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
script = ExtResource("1_av5po")
|
||||
Health = 4.0
|
||||
ExplosionRadius = 0.0
|
||||
ExplosionDamage = 0.0
|
||||
DebrisScene = ExtResource("2_av5po")
|
||||
ExplosionParticles = ExtResource("3_o2nov")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_5nv8d")
|
||||
|
||||
[node name="AnimatedSprite2D2" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(0, -8)
|
||||
sprite_frames = SubResource("SpriteFrames_5nv8d")
|
||||
|
||||
[node name="RigidBody2D" type="StaticBody2D" parent="."]
|
||||
visible = false
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
position = Vector2(0, -3)
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
|
||||
[node name="NavigationObstacle2D" type="NavigationObstacle2D" parent="."]
|
||||
visible = false
|
||||
radius = 8.36
|
||||
vertices = PackedVector2Array(-6, -7, 6, -7, 6, 7, -6, 7)
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(0.5, -3.5)
|
||||
shape = SubResource("RectangleShape2D_2ewfl")
|
||||
Loading…
Add table
Add a link
Reference in a new issue