Envie/Projectiles/basic_projectile.tscn
Victor Turgeon ea11e29ce3 ZE PEWPENING
2023-01-15 12:27:19 -05:00

80 lines
2.3 KiB
Plaintext

[gd_scene load_steps=12 format=3 uid="uid://cpo8qy3y0fuui"]
[ext_resource type="Script" path="res://Projectiles/basic_projectile.gd" id="1_l2kyf"]
[ext_resource type="Texture2D" uid="uid://2xd84hbj47vd" path="res://Sprites/sand_sprite.png" id="2_1c2lh"]
[sub_resource type="AtlasTexture" id="AtlasTexture_oqhi1"]
atlas = ExtResource("2_1c2lh")
region = Rect2(0, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_hwcsx"]
atlas = ExtResource("2_1c2lh")
region = Rect2(64, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_2kbmk"]
atlas = ExtResource("2_1c2lh")
region = Rect2(128, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_p1d4t"]
atlas = ExtResource("2_1c2lh")
region = Rect2(192, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_os7n2"]
atlas = ExtResource("2_1c2lh")
region = Rect2(256, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_ppc06"]
atlas = ExtResource("2_1c2lh")
region = Rect2(320, 0, 64, 64)
[sub_resource type="AtlasTexture" id="AtlasTexture_7gy0c"]
atlas = ExtResource("2_1c2lh")
region = Rect2(384, 0, 64, 64)
[sub_resource type="SpriteFrames" id="SpriteFrames_5b7u4"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_oqhi1")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_hwcsx")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2kbmk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_p1d4t")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_os7n2")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ppc06")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_7gy0c")
}],
"loop": true,
"name": &"explosion",
"speed": 60.0
}]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_pp7ve"]
size = Vector2(4, 4)
[node name="basic_projectile" type="Area2D"]
script = ExtResource("1_l2kyf")
[node name="Sprite2D" type="AnimatedSprite2D" parent="."]
position = Vector2(12, 11)
scale = Vector2(0.531558, 0.531558)
frames = SubResource("SpriteFrames_5b7u4")
animation = &"explosion"
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("RectangleShape2D_pp7ve")
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
[connection signal="animation_finished" from="Sprite2D" to="." method="_on_sprite_2d_animation_finished"]