Files
Embodiment/Enemies/Projectiles/Fireball.tscn
2021-12-09 20:39:56 -06:00

81 lines
2.1 KiB
Plaintext

[gd_scene load_steps=15 format=2]
[ext_resource path="res://Enemies/Projectiles/Fireball.gd" type="Script" id=1]
[ext_resource path="res://Sprites/Enemies/Projectiles/Iceball_84x9.png" type="Texture" id=2]
[sub_resource type="AtlasTexture" id=1]
atlas = ExtResource( 2 )
region = Rect2( 0, 0, 84, 63 )
[sub_resource type="AtlasTexture" id=2]
atlas = ExtResource( 2 )
region = Rect2( 84, 0, 84, 63 )
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 2 )
region = Rect2( 168, 0, 84, 63 )
[sub_resource type="AtlasTexture" id=4]
atlas = ExtResource( 2 )
region = Rect2( 252, 0, 84, 63 )
[sub_resource type="AtlasTexture" id=5]
atlas = ExtResource( 2 )
region = Rect2( 336, 0, 84, 63 )
[sub_resource type="AtlasTexture" id=6]
atlas = ExtResource( 2 )
region = Rect2( 420, 0, 84, 63 )
[sub_resource type="AtlasTexture" id=7]
atlas = ExtResource( 2 )
region = Rect2( 504, 0, 84, 63 )
[sub_resource type="AtlasTexture" id=8]
atlas = ExtResource( 2 )
region = Rect2( 588, 0, 84, 63 )
[sub_resource type="AtlasTexture" id=9]
atlas = ExtResource( 2 )
region = Rect2( 672, 0, 84, 63 )
[sub_resource type="AtlasTexture" id=10]
atlas = ExtResource( 2 )
region = Rect2( 756, 0, 84, 63 )
[sub_resource type="SpriteFrames" id=11]
animations = [ {
"frames": [ SubResource( 1 ), SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ), SubResource( 10 ) ],
"loop": true,
"name": "fire",
"speed": 5.0
} ]
[sub_resource type="CapsuleShape2D" id=12]
height = 36.5213
[node name="Fireball" type="Area2D" groups=[
"enemy_projectile_2",
]]
scale = Vector2( 0.5, 0.5 )
collision_layer = 0
collision_mask = 2
script = ExtResource( 1 )
[node name="Sprite" type="AnimatedSprite" parent="."]
frames = SubResource( 11 )
animation = "fire"
frame = 7
playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( -34.9228, -2.77795 )
shape = SubResource( 12 )
[node name="Lifetime" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
autostart = true
[connection signal="timeout" from="Lifetime" to="." method="_on_Lifetime_timeout"]