Flopsy/objects/characters/monsters/03/bullet.tscn

69 lines
2.0 KiB
Plaintext

[gd_scene load_steps=6 format=2]
[ext_resource path="res://objects/characters/monsters/03/assets/fireball.svg" type="Texture" id=1]
[ext_resource path="res://objects/characters/monsters/03/bullet.gd" type="Script" id=2]
[sub_resource type="CircleShape2D" id=1]
radius = 11.7047
[sub_resource type="Animation" id=2]
resource_name = "rotate"
length = 0.8
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:rotation_degrees")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2, 0.4, 0.6, 0.8 ),
"transitions": PoolRealArray( 1, 1, 1, 1, 0 ),
"update": 0,
"values": [ 0.0, 90.0, 180.0, 270.0, 360.0 ]
}
[sub_resource type="Animation" id=3]
resource_name = "fade"
length = 0.5
tracks/0/type = "value"
tracks/0/path = NodePath("Sprite:modulate")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
}
[node name="Bullet" type="StaticBody2D"]
collision_layer = 0
collision_mask = 0
script = ExtResource( 2 )
[node name="Sprite" type="Sprite" parent="."]
texture = ExtResource( 1 )
[node name="Collision" type="CollisionShape2D" parent="."]
shape = SubResource( 1 )
[node name="Rotation" type="AnimationPlayer" parent="."]
anims/rotate = SubResource( 2 )
[node name="Animation" type="AnimationPlayer" parent="."]
anims/fade = SubResource( 3 )
[node name="PlayerCollision" type="Area2D" parent="."]
collision_layer = 0
[node name="Collision" type="CollisionShape2D" parent="PlayerCollision"]
shape = SubResource( 1 )
[node name="VisibilityNotifier2D" type="VisibilityNotifier2D" parent="."]
[connection signal="body_entered" from="PlayerCollision" to="." method="_on_PlayerCollision"]
[connection signal="screen_exited" from="VisibilityNotifier2D" to="." method="_on_screen_exited"]