mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 14:25:55 +00:00
Tanks
This commit is contained in:
parent
b14288fdff
commit
4e25d03dda
16 changed files with 265 additions and 33 deletions
|
|
@ -1,35 +1,52 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://b0k2grrc8xp1l"]
|
||||
[gd_scene load_steps=9 format=3 uid="uid://b0k2grrc8xp1l"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_xmxyc"]
|
||||
[ext_resource type="PackedScene" uid="uid://c53lpgcvld227" path="res://Scenes/Detritus.tscn" id="2_2ajyr"]
|
||||
[ext_resource type="PackedScene" uid="uid://oslelh5laokm" path="res://Scenes/Props/BigTank_Broken.tscn" id="2_w1qa3"]
|
||||
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_cvv71"]
|
||||
[ext_resource type="Texture2D" uid="uid://csivp4uxfmard" path="res://Sprites/Props/BigTank.png" id="4_tvvum"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_w1qa3"]
|
||||
atlas = ExtResource("4_tvvum")
|
||||
region = Rect2(0, 0, 32, 48)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_25x8m"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_w1qa3")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0nhpj"]
|
||||
size = Vector2(32, 36)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_s3n6b"]
|
||||
size = Vector2(32, 36)
|
||||
|
||||
[node name="BigTank" type="Area2D"]
|
||||
[node name="BigTank" type="Area2D" groups=["Destroyable"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
collision_mask = 138
|
||||
script = ExtResource("1_xmxyc")
|
||||
Health = 16.0
|
||||
DebrisScene = ExtResource("2_2ajyr")
|
||||
DebrisScene = ExtResource("2_w1qa3")
|
||||
ExplosionParticles = ExtResource("3_cvv71")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("4_tvvum")
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_25x8m")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(0, -1)
|
||||
shape = SubResource("RectangleShape2D_0nhpj")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="." groups=["Solid"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
visible = false
|
||||
|
|
|
|||
54
Scenes/Props/BigTankHorizontal.tscn
Normal file
54
Scenes/Props/BigTankHorizontal.tscn
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://dcbcyp1qogcl0"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_bqwe8"]
|
||||
[ext_resource type="PackedScene" uid="uid://7qcjh7lo7tld" path="res://Scenes/Props/BigTankHorizontal_Broken.tscn" id="2_bqwe8"]
|
||||
[ext_resource type="PackedScene" uid="uid://jmijre3eaf8m" path="res://Scenes/Explosion.tscn" id="3_wscba"]
|
||||
[ext_resource type="Texture2D" uid="uid://7k40xhmawjyo" path="res://Sprites/Props/BigTankHorizontal.png" id="4_bqwe8"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_bd6jr"]
|
||||
atlas = ExtResource("4_bqwe8")
|
||||
region = Rect2(0, 0, 32, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_wscba"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_bd6jr")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0nhpj"]
|
||||
size = Vector2(26, 27)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_s3n6b"]
|
||||
size = Vector2(26, 27)
|
||||
|
||||
[node name="BigTankHorizontal" type="Area2D" groups=["Destroyable"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 138
|
||||
script = ExtResource("1_bqwe8")
|
||||
Health = 16.0
|
||||
DebrisScene = ExtResource("2_bqwe8")
|
||||
ExplosionParticles = ExtResource("3_wscba")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_wscba")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(0, -0.5)
|
||||
shape = SubResource("RectangleShape2D_0nhpj")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="." groups=["Solid"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
visible = false
|
||||
position = Vector2(0, -0.5)
|
||||
shape = SubResource("RectangleShape2D_s3n6b")
|
||||
49
Scenes/Props/BigTankHorizontal_Broken.tscn
Normal file
49
Scenes/Props/BigTankHorizontal_Broken.tscn
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://7qcjh7lo7tld"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_suwhg"]
|
||||
[ext_resource type="Texture2D" uid="uid://7k40xhmawjyo" path="res://Sprites/Props/BigTankHorizontal.png" id="2_suwhg"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vty3y"]
|
||||
atlas = ExtResource("2_suwhg")
|
||||
region = Rect2(32, 0, 32, 32)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_u1cn4"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vty3y")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
|
||||
size = Vector2(28, 26)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
|
||||
size = Vector2(28, 26)
|
||||
|
||||
[node name="Big Tank Broken" type="Area2D" groups=["Destroyable"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
script = ExtResource("1_suwhg")
|
||||
Indestructible = true
|
||||
Health = 2.0
|
||||
ExplosionRadius = 0.0
|
||||
ExplosionDamage = 0.0
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_u1cn4")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_2ewfl")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
49
Scenes/Props/BigTank_Broken.tscn
Normal file
49
Scenes/Props/BigTank_Broken.tscn
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://oslelh5laokm"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cpx2fxtumgmud" path="res://Scenes/Barrel.cs" id="1_tscp6"]
|
||||
[ext_resource type="Texture2D" uid="uid://csivp4uxfmard" path="res://Sprites/Props/BigTank.png" id="2_tscp6"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_i6l5p"]
|
||||
atlas = ExtResource("2_tscp6")
|
||||
region = Rect2(32, 0, 32, 48)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_012us"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_i6l5p")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"default",
|
||||
"speed": 5.0
|
||||
}]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_2ewfl"]
|
||||
size = Vector2(32, 48)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ss2y0"]
|
||||
size = Vector2(32, 48)
|
||||
|
||||
[node name="Big Tank Broken" type="Area2D" groups=["Destroyable"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
script = ExtResource("1_tscp6")
|
||||
Indestructible = true
|
||||
Health = 2.0
|
||||
ExplosionRadius = 0.0
|
||||
ExplosionDamage = 0.0
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_012us")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("RectangleShape2D_2ewfl")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
shape = SubResource("RectangleShape2D_ss2y0")
|
||||
Loading…
Add table
Add a link
Reference in a new issue