[gd_scene load_steps=16 format=1]

[ext_resource path="res://Sprites/Effects/UFO-ray_1.png" type="Texture" id=1]
[ext_resource path="res://Sprites/Effects/UFO-ray_2.png" type="Texture" id=2]
[ext_resource path="res://Sprites/Effects/leche.png" type="Texture" id=3]
[ext_resource path="res://Sprites/Charasets/UFO.png" type="Texture" id=4]
[ext_resource path="res://Scenes/Events/player_spawner.tscn" type="PackedScene" id=5]
[ext_resource path="res://Sprites/Charasets/cow.png" type="Texture" id=6]
[ext_resource path="res://Sound/UFO_abduct.ogg" type="AudioStream" id=7]
[ext_resource path="res://Fonts/pixelated_regular.fnt" type="BitmapFont" id=8]

[sub_resource type="Animation" id=1]

resource/name = "floating"
length = 3.0
loop = true
step = 0.1
tracks/0/type = "value"
tracks/0/path = NodePath(".:transform/pos")
tracks/0/interp = 2
tracks/0/imported = false
tracks/0/keys = {
"times": FloatArray( 0, 1.5, 3 ),
"transitions": FloatArray( 1, 1, 1 ),
"update": 0,
"values": [ Vector2( 0, 0 ), Vector2( 0, -7 ), Vector2( 0, 0 ) ]
}

[sub_resource type="ConvexPolygonShape2D" id=2]

custom_solver_bias = 0.0
points = Vector2Array( 0, 23.8991, -81, 17.8991, -119, 6.89908, -139, -6.10092, -140, -16.1009, -134, -26.1009, -110, -38.1009, -76, -47.1009, -57, -50.1009 )

[sub_resource type="ConvexPolygonShape2D" id=3]

custom_solver_bias = 0.0
points = Vector2Array( 66, 19.8991, 0, 23.8991, -57, -50.1009, -46, -67.1009, -23, -81.1009, 0, -83.1009, 22, -81.1009, 46, -66.1009, 57, -50.1009 )

[sub_resource type="ConvexPolygonShape2D" id=4]

custom_solver_bias = 0.0
points = Vector2Array( 134, -3.10092, 106, 12.8991, 66, 19.8991, 57, -50.1009, 83, -46.1009, 107, -39.1009, 123, -32.1009, 137, -19.1009, 139, -10.1009 )

[sub_resource type="Animation" id=5]

resource/name = "appear"
length = 1.0
loop = false
step = 0.05
tracks/0/type = "value"
tracks/0/path = NodePath(".:visibility/opacity")
tracks/0/interp = 2
tracks/0/imported = false
tracks/0/keys = {
"times": FloatArray( 0, 0.05, 0.15, 0.2, 0.3, 0.45, 0.5, 0.6, 0.95, 1 ),
"transitions": FloatArray( 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ 0.0, 0.4, 0.1, 1.0, 0.1, 0.5, 0.8, 0.4, 1.0, 0.0 ]
}

[sub_resource type="Animation" id=6]

resource/name = "unvanish"
length = 1.0
loop = false
step = 0.05
tracks/0/type = "value"
tracks/0/path = NodePath(".:visibility/opacity")
tracks/0/interp = 2
tracks/0/imported = false
tracks/0/keys = {
"times": FloatArray( 0, 0.05, 0.1, 0.15, 0.25, 0.4, 0.5, 0.6, 0.85 ),
"transitions": FloatArray( 1, 1, 1, 1, 1, 1, 1, 1, 1 ),
"update": 0,
"values": [ 1.0, 0.4, 0.8, 0.1, 0.5, 0.1, 1.0, 0.4, 0.0 ]
}

[sub_resource type="RectangleShape2D" id=7]

custom_solver_bias = 0.0
extents = Vector2( 4.3399, 110.989 )

[node name="UFO" type="Node2D"]

[node name="Ray" type="Node2D" parent="."]

editor/display_folded = true
visibility/behind_parent = true
transform/pos = Vector2( 0, 131 )
z/z = 2

[node name="ray_outter" type="Sprite" parent="Ray"]

visibility/opacity = 0.2
visibility/behind_parent = true
visibility/blend_mode = 1
texture = ExtResource( 1 )

[node name="ray_inner" type="Sprite" parent="Ray"]

visibility/opacity = 0.2
visibility/behind_parent = true
visibility/blend_mode = 1
texture = ExtResource( 2 )

[node name="Particles2D" type="Particles2D" parent="Ray"]

visibility/behind_parent = true
visibility/blend_mode = 1
transform/pos = Vector2( 38, 111 )
config/amount = 3
config/lifetime = 0.6
config/time_scale = 0.6
config/preprocess = 10.0
config/process_mode = 1
config/texture = ExtResource( 3 )
params/direction = 180.0
params/spread = 0.0
params/linear_velocity = 400.0
params/spin_velocity = 0.0
params/orbit_velocity = 0.0
params/gravity_direction = 0.0
params/gravity_strength = 9.8
params/radial_accel = 100.0
params/tangential_accel = 150.0
params/damping = 0.0
params/initial_angle = 0.0
params/initial_size = 0.5
params/final_size = 0.0
params/hue_variation = 5.0
params/anim_speed_scale = 1.0
params/anim_initial_pos = 0.0
randomness/gravity_direction = 1.0
randomness/tangential_accel = 0.4
randomness/initial_size = 0.5
randomness/hue_variation = 0.15
color/color = Color( 0.333827, 0.355469, 0.209671, 1 )

[node name="Particles2D1" type="Particles2D" parent="Ray"]

visibility/behind_parent = true
visibility/blend_mode = 1
transform/pos = Vector2( -34, 111 )
config/amount = 3
config/lifetime = 0.6
config/time_scale = 0.6
config/preprocess = 10.0
config/process_mode = 1
config/texture = ExtResource( 3 )
params/direction = 180.0
params/spread = 0.0
params/linear_velocity = 400.0
params/spin_velocity = 0.0
params/orbit_velocity = 0.0
params/gravity_direction = 0.0
params/gravity_strength = 9.8
params/radial_accel = 100.0
params/tangential_accel = -128.0
params/damping = 0.0
params/initial_angle = 0.0
params/initial_size = 0.5
params/final_size = 0.0
params/hue_variation = 5.0
params/anim_speed_scale = 1.0
params/anim_initial_pos = 0.0
randomness/gravity_direction = 1.0
randomness/tangential_accel = 0.4
randomness/initial_size = 0.5
randomness/hue_variation = 0.15
color/color = Color( 0.333827, 0.355469, 0.209671, 1 )

[node name="Particles2D2" type="Particles2D" parent="Ray"]

visibility/behind_parent = true
visibility/blend_mode = 1
transform/pos = Vector2( 2, 118 )
config/amount = 3
config/lifetime = 0.6
config/time_scale = 0.6
config/preprocess = 10.0
config/process_mode = 1
config/texture = ExtResource( 3 )
params/direction = 180.0
params/spread = 0.0
params/linear_velocity = 400.0
params/spin_velocity = 0.0
params/orbit_velocity = 0.0
params/gravity_direction = 0.0
params/gravity_strength = 9.8
params/radial_accel = 100.0
params/tangential_accel = 0.0
params/damping = 0.0
params/initial_angle = 0.0
params/initial_size = 0.5
params/final_size = 0.0
params/hue_variation = 5.0
params/anim_speed_scale = 1.0
params/anim_initial_pos = 0.0
randomness/linear_velocity = 0.5
randomness/gravity_direction = 1.0
randomness/tangential_accel = 0.4
randomness/initial_size = 0.5
randomness/hue_variation = 0.15
color/color = Color( 0.333827, 0.355469, 0.209671, 1 )

[node name="Sprite_UFO" type="Sprite" parent="."]

editor/display_folded = true
transform/pos = Vector2( 0, -4.66871 )
z/z = 3
texture = ExtResource( 4 )

[node name="Smoke" type="Node2D" parent="Sprite_UFO"]

editor/display_folded = true
visibility/behind_parent = true

[node name="some_a" type="Particles2D" parent="Sprite_UFO/Smoke"]

visibility/opacity = 0.2
visibility/behind_parent = true
transform/pos = Vector2( -94, -8.13146 )
config/amount = 32
config/lifetime = 0.5
config/process_mode = 1
config/texture = ExtResource( 3 )
params/direction = 0.0
params/spread = 10.0
params/linear_velocity = 80.0
params/spin_velocity = 0.0
params/orbit_velocity = 0.0
params/gravity_direction = 0.0
params/gravity_strength = 9.8
params/radial_accel = 0.0
params/tangential_accel = 0.0
params/damping = 0.0
params/initial_angle = 0.0
params/initial_size = 1.0
params/final_size = 0.0
params/hue_variation = 0.0
params/anim_speed_scale = 1.0
params/anim_initial_pos = 0.0
randomness/spread = 0.2
randomness/hue_variation = 0.1
color/color = Color( 0.414062, 1, 0.533081, 1 )

[node name="smoke_b" type="Particles2D" parent="Sprite_UFO/Smoke"]

visibility/opacity = 0.2
visibility/behind_parent = true
transform/pos = Vector2( -69, 10.046 )
config/amount = 32
config/lifetime = 0.5
config/process_mode = 1
config/texture = ExtResource( 3 )
params/direction = 0.0
params/spread = 10.0
params/linear_velocity = 80.0
params/spin_velocity = 0.0
params/orbit_velocity = 0.0
params/gravity_direction = 0.0
params/gravity_strength = 9.8
params/radial_accel = 0.0
params/tangential_accel = 0.0
params/damping = 0.0
params/initial_angle = 0.0
params/initial_size = 1.0
params/final_size = 0.0
params/hue_variation = 0.0
params/anim_speed_scale = 1.0
params/anim_initial_pos = 0.0
randomness/spread = 0.2
randomness/hue_variation = 0.1
color/color = Color( 0.414062, 1, 0.533081, 1 )

[node name="smoke_c" type="Particles2D" parent="Sprite_UFO/Smoke"]

visibility/opacity = 0.2
visibility/behind_parent = true
transform/pos = Vector2( -24, 21.6321 )
config/amount = 32
config/lifetime = 0.5
config/process_mode = 1
config/texture = ExtResource( 3 )
params/direction = 0.0
params/spread = 10.0
params/linear_velocity = 80.0
params/spin_velocity = 0.0
params/orbit_velocity = 0.0
params/gravity_direction = 0.0
params/gravity_strength = 9.8
params/radial_accel = 0.0
params/tangential_accel = 0.0
params/damping = 0.0
params/initial_angle = 0.0
params/initial_size = 1.0
params/final_size = 0.0
params/hue_variation = 0.0
params/anim_speed_scale = 1.0
params/anim_initial_pos = 0.0
randomness/spread = 0.2
randomness/hue_variation = 0.1
color/color = Color( 0.414062, 1, 0.533081, 1 )

[node name="smoke_d" type="Particles2D" parent="Sprite_UFO/Smoke"]

visibility/opacity = 0.2
visibility/behind_parent = true
transform/pos = Vector2( 26, 20.4355 )
config/amount = 32
config/lifetime = 0.5
config/process_mode = 1
config/texture = ExtResource( 3 )
params/direction = 0.0
params/spread = 10.0
params/linear_velocity = 80.0
params/spin_velocity = 0.0
params/orbit_velocity = 0.0
params/gravity_direction = 0.0
params/gravity_strength = 9.8
params/radial_accel = 0.0
params/tangential_accel = 0.0
params/damping = 0.0
params/initial_angle = 0.0
params/initial_size = 1.0
params/final_size = 0.0
params/hue_variation = 0.0
params/anim_speed_scale = 1.0
params/anim_initial_pos = 0.0
randomness/spread = 0.2
randomness/hue_variation = 0.1
color/color = Color( 0.414062, 1, 0.533081, 1 )

[node name="smoke_e" type="Particles2D" parent="Sprite_UFO/Smoke"]

visibility/opacity = 0.2
visibility/behind_parent = true
transform/pos = Vector2( 67, 13.6283 )
config/amount = 32
config/lifetime = 0.5
config/process_mode = 1
config/texture = ExtResource( 3 )
params/direction = 0.0
params/spread = 10.0
params/linear_velocity = 80.0
params/spin_velocity = 0.0
params/orbit_velocity = 0.0
params/gravity_direction = 0.0
params/gravity_strength = 9.8
params/radial_accel = 0.0
params/tangential_accel = 0.0
params/damping = 0.0
params/initial_angle = 0.0
params/initial_size = 1.0
params/final_size = 0.0
params/hue_variation = 0.0
params/anim_speed_scale = 1.0
params/anim_initial_pos = 0.0
randomness/spread = 0.2
randomness/hue_variation = 0.1
color/color = Color( 0.414062, 1, 0.533081, 1 )

[node name="smoke_f" type="Particles2D" parent="Sprite_UFO/Smoke"]

visibility/opacity = 0.2
visibility/behind_parent = true
transform/pos = Vector2( 90, -12.5606 )
config/amount = 32
config/lifetime = 0.5
config/process_mode = 1
config/texture = ExtResource( 3 )
params/direction = 0.0
params/spread = 10.0
params/linear_velocity = 80.0
params/spin_velocity = 0.0
params/orbit_velocity = 0.0
params/gravity_direction = 0.0
params/gravity_strength = 9.8
params/radial_accel = 0.0
params/tangential_accel = 0.0
params/damping = 0.0
params/initial_angle = 0.0
params/initial_size = 1.0
params/final_size = 0.0
params/hue_variation = 0.0
params/anim_speed_scale = 1.0
params/anim_initial_pos = 0.0
randomness/spread = 0.2
randomness/hue_variation = 0.1
color/color = Color( 0.414062, 1, 0.533081, 1 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="Sprite_UFO"]

playback/process_mode = 0
playback/default_blend_time = 0.0
root/root = NodePath("..")
anims/floating = SubResource( 1 )
playback/active = true
playback/speed = 1.0
blend_times = [  ]
autoplay = "floating"

[node name="StaticBody2D" type="StaticBody2D" parent="Sprite_UFO"]

editor/display_folded = true
visibility/visible = false
input/pickable = false
shapes/0/shape = SubResource( 2 )
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/0/trigger = false
shapes/1/shape = SubResource( 3 )
shapes/1/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/1/trigger = false
shapes/2/shape = SubResource( 4 )
shapes/2/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/2/trigger = false
collision/layers = 1
collision/mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0

[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="Sprite_UFO/StaticBody2D"]

build_mode = 0
polygon = Vector2Array( -57, -50.1009, -46, -67.1009, -23, -81.1009, 0, -83.1009, 22, -81.1009, 46, -66.1009, 57, -50.1009, 83, -46.1009, 107, -39.1009, 123, -32.1009, 137, -19.1009, 139, -10.1009, 134, -3.10092, 106, 12.8991, 66, 19.8991, 0, 23.8991, -81, 17.8991, -119, 6.89908, -139, -6.10092, -140, -16.1009, -134, -26.1009, -110, -38.1009, -76, -47.1009 )
shape_range = Vector2( 0, 2 )
trigger = false

[node name="player_spawner" parent="." groups=[
"player_spawner",
] instance=ExtResource( 5 )]

transform/pos = Vector2( -1.5159, 199.14 )

[node name="Sprite_cow" type="Sprite" parent="player_spawner"]

visibility/opacity = 0.0
visibility/behind_parent = true
transform/pos = Vector2( 1.00537, -0.359009 )
z/z = -2
texture = ExtResource( 6 )
region = true
region_rect = Rect2( 0, 0, 96, 96 )

[node name="AnimationPlayer" type="AnimationPlayer" parent="player_spawner/Sprite_cow"]

playback/process_mode = 1
playback/default_blend_time = 0.0
root/root = NodePath("..")
anims/appear = SubResource( 5 )
anims/unvanish = SubResource( 6 )
playback/active = true
playback/speed = 5.0
blend_times = [  ]
autoplay = ""

[node name="Area2D" type="Area2D" parent="player_spawner"]

editor/display_folded = true
transform/pos = Vector2( 1.00537, -57.1355 )
input/pickable = true
shapes/0/shape = SubResource( 7 )
shapes/0/transform = Matrix32( 1, 0, 0, 1, -0.263519, 0 )
shapes/0/trigger = false
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0

[node name="CollisionShape2D" type="CollisionShape2D" parent="player_spawner/Area2D"]

transform/pos = Vector2( -0.263519, 0 )
shape = SubResource( 7 )
trigger = false
_update_shape_index = 0

[node name="Instancer" type="Node2D" parent="player_spawner"]

transform/scale = Vector2( 0.5882, 0.5882 )

[node name="Sound" type="StreamPlayer" parent="player_spawner"]

stream/stream = ExtResource( 7 )
stream/play = true
stream/loop = false
stream/volume_db = 10.0
stream/autoplay = false
stream/paused = false
stream/loop_restart_time = 0.0
stream/buffering_ms = 500

[node name="UFO_texts" type="Label" parent="player_spawner"]

focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = -202.0
margin/top = -154.0
margin/right = 204.0
margin/bottom = -96.0
custom_fonts/font = ExtResource( 8 )
align = 1
autowrap = true
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1

[connection signal="body_enter" from="player_spawner/Area2D" to="player_spawner" method="_on_Area2D_body_enter"]

[connection signal="body_exit" from="player_spawner/Area2D" to="player_spawner" method="_on_Area2D_body_exit"]


