74 lines
2.2 KiB
Plaintext
74 lines
2.2 KiB
Plaintext
[gd_scene load_steps=14 format=2]
|
|
|
|
[ext_resource path="res://sprites/suikashot.png" type="Texture" id=1]
|
|
[ext_resource path="res://SuikaShot.gd" type="Script" id=2]
|
|
[ext_resource path="res://sfx/suika_shot.wav" type="AudioStream" id=3]
|
|
|
|
[sub_resource type="AtlasTexture" id=2]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 0, 0, 31, 24 )
|
|
|
|
[sub_resource type="AtlasTexture" id=3]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 31, 0, 31, 24 )
|
|
|
|
[sub_resource type="AtlasTexture" id=4]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 62, 0, 31, 24 )
|
|
|
|
[sub_resource type="AtlasTexture" id=5]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 93, 0, 31, 24 )
|
|
|
|
[sub_resource type="AtlasTexture" id=6]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 124, 0, 31, 24 )
|
|
|
|
[sub_resource type="AtlasTexture" id=7]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 155, 0, 31, 24 )
|
|
|
|
[sub_resource type="AtlasTexture" id=8]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 186, 0, 31, 24 )
|
|
|
|
[sub_resource type="AtlasTexture" id=9]
|
|
atlas = ExtResource( 1 )
|
|
region = Rect2( 217, 0, 31, 24 )
|
|
|
|
[sub_resource type="SpriteFrames" id=10]
|
|
animations = [ {
|
|
"frames": [ SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ), SubResource( 7 ), SubResource( 8 ), SubResource( 9 ) ],
|
|
"loop": true,
|
|
"name": "default",
|
|
"speed": 8.0
|
|
} ]
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
extents = Vector2( 15, 14 )
|
|
|
|
[node name="SuikaShot" type="Area2D"]
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
|
frames = SubResource( 10 )
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource( 1 )
|
|
|
|
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
|
|
scale = Vector2( 1.7, 1.4 )
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 3.0
|
|
one_shot = true
|
|
autostart = true
|
|
|
|
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource( 3 )
|
|
|
|
[connection signal="area_entered" from="." to="." method="_on_SuikaShot_area_entered"]
|
|
[connection signal="body_entered" from="." to="." method="_on_FairyShot_body_entered"]
|
|
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_VisibilityNotifier2D_screen_exited"]
|
|
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|