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