mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-15 13:23:47 +00:00
Tanks
This commit is contained in:
parent
b14288fdff
commit
4e25d03dda
16 changed files with 265 additions and 33 deletions
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")
|
||||
Loading…
Add table
Add a link
Reference in a new issue