mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-14 09:53:47 +00:00
Sprites
This commit is contained in:
parent
1c1436a539
commit
2be069eab4
17 changed files with 255 additions and 45 deletions
|
|
@ -1,38 +1,54 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://e80xujqyjoh"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://e80xujqyjoh"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" 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://bkr1rv30ww4xt" path="res://Scenes/Props/Box_Vertical_Broken.tscn" id="2_xajnp"]
|
||||
[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="AtlasTexture" id="AtlasTexture_xajnp"]
|
||||
atlas = ExtResource("4_yhmvo")
|
||||
region = Rect2(0, 0, 16, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_xu8ef"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xajnp")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[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"]]
|
||||
[node name="Vertical Box" type="Area2D" groups=["Destroyable"]]
|
||||
y_sort_enabled = true
|
||||
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")
|
||||
DebrisScene = ExtResource("2_xajnp")
|
||||
ExplosionParticles = ExtResource("3_384ns")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(0, -9)
|
||||
sprite_frames = SubResource("SpriteFrames_xu8ef")
|
||||
|
||||
[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="."]
|
||||
position = Vector2(0, -9)
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
gravity_scale = 0.0
|
||||
|
|
|
|||
56
Scenes/Props/Box_Vertical_Broken.tscn
Normal file
56
Scenes/Props/Box_Vertical_Broken.tscn
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
[gd_scene load_steps=8 format=3 uid="uid://bkr1rv30ww4xt"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_xr0or"]
|
||||
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_v3lmq"]
|
||||
[ext_resource type="Texture2D" uid="uid://b1xpvkxylpath" path="res://Sprites/Props/VerticalStorage.png" id="4_q2283"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_nrv7m"]
|
||||
atlas = ExtResource("4_q2283")
|
||||
region = Rect2(16, 0, 16, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_xr0or"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_nrv7m")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
|
||||
size = Vector2(14, 28)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
|
||||
size = Vector2(12, 24)
|
||||
|
||||
[node name="Broken Vertical Box" type="Area2D" groups=["Destroyable"]]
|
||||
y_sort_enabled = true
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
script = ExtResource("1_xr0or")
|
||||
Health = 4.0
|
||||
ExplosionRadius = 0.0
|
||||
ExplosionDamage = 0.0
|
||||
ExplosionParticles = ExtResource("3_v3lmq")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
position = Vector2(0, -9)
|
||||
sprite_frames = SubResource("SpriteFrames_xr0or")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(0, -1)
|
||||
shape = SubResource("RectangleShape2D_2ewfl")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
position = Vector2(0, -9)
|
||||
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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue