[gd_scene load_steps=21 format=4 uid="uid://bauklhpieuivd"]

[ext_resource type="Script" uid="uid://d0qswyhwbhdua" path="res://scripts/game.gd" id="1_u5sy4"]
[ext_resource type="Texture2D" uid="uid://dtwo7g0ipc4k" path="res://textures/ship_1.png" id="1_uwrxv"]
[ext_resource type="Script" uid="uid://bfxfkrkaebxk0" path="res://scripts/player.gd" id="1_yqjtg"]
[ext_resource type="AudioStream" uid="uid://bfvnxahiyqxhx" path="res://sounds/ballad_of_the_cats.mp3" id="2_gee14"]
[ext_resource type="AudioStream" uid="uid://brqjxveo53kco" path="res://sounds/boost.mp3" id="2_iywne"]
[ext_resource type="AudioStream" uid="uid://5tr30e1tmdp6" path="res://sounds/collision.mp3" id="2_lbhrr"]
[ext_resource type="AudioStream" uid="uid://b6tyof2j3ytbv" path="res://sounds/concrete_halls.mp3" id="3_0tnpc"]
[ext_resource type="AudioStream" uid="uid://b1ung55xg31l3" path="res://sounds/boost_finish.mp3" id="3_p57ef"]
[ext_resource type="AudioStream" uid="uid://y7lhonymtk3t" path="res://sounds/fire.mp3" id="8_vtaks"]
[ext_resource type="Texture2D" uid="uid://dsdd1830ilu1" path="res://textures/navigation_ring.png" id="10_dinhu"]
[ext_resource type="Texture2D" uid="uid://yfsqc4i52c6k" path="res://textures/space_station_1.png" id="12_dinhu"]
[ext_resource type="Shader" uid="uid://bk7q00br1ms30" path="res://scripts/retro.gdshader" id="12_kvuet"]
[ext_resource type="Texture2D" uid="uid://hgfmjw6gbdnn" path="res://textures/blank.png" id="12_trtic"]
[ext_resource type="Script" uid="uid://d0txwo63hlrsy" path="res://scripts/enterable.gd" id="13_trtic"]

[sub_resource type="CircleShape2D" id="CircleShape2D_uwrxv"]
radius = 16.0

[sub_resource type="CircleShape2D" id="CircleShape2D_lnu2h"]
radius = 20.0

[sub_resource type="ShaderMaterial" id="ShaderMaterial_trtic"]
shader = ExtResource("12_kvuet")
shader_parameter/shake = 0.002000000095
shader_parameter/noiseQuality = 250.0
shader_parameter/noiseIntensity = 0.0010000000475
shader_parameter/offsetIntensity = 0.0045
shader_parameter/colorOffsetIntensity = 0.10000000149012
shader_parameter/pixelSize = 1024.0
shader_parameter/grainIntensity = 0.04
shader_parameter/use_overlay = true
shader_parameter/use_lens_distortion = true
shader_parameter/overlay_color = Color(1, 1, 1, 10)
shader_parameter/lens_distortion_strength = 0.0

[sub_resource type="TileSetAtlasSource" id="TileSetAtlasSource_ir15t"]
texture = ExtResource("12_trtic")
0:0/size_in_atlas = Vector2i(2, 2)
0:0/0 = 0
0:0/0/physics_layer_0/polygon_0/points = PackedVector2Array(-16, -16, 16, -16, 16, 16, -16, 16)

[sub_resource type="TileSet" id="TileSet_ca42v"]
tile_size = Vector2i(32, 32)
physics_layer_0/collision_layer = 1
sources/0 = SubResource("TileSetAtlasSource_ir15t")

[sub_resource type="RectangleShape2D" id="RectangleShape2D_kvuet"]
size = Vector2(128, 32)

[node name="Game" type="Node2D"]
script = ExtResource("1_u5sy4")

[node name="BalladOfTheCats" type="AudioStreamPlayer" parent="."]
stream = ExtResource("2_gee14")
volume_db = -10.0
bus = &"Music"

[node name="ConcreteHalls" type="AudioStreamPlayer" parent="."]
stream = ExtResource("3_0tnpc")
volume_db = -10.0
bus = &"Music"

[node name="Navring" type="Sprite2D" parent="."]
texture = ExtResource("10_dinhu")

[node name="Player" type="RigidBody2D" parent="."]
linear_damp = 6.247
script = ExtResource("1_yqjtg")

[node name="Boost" type="AudioStreamPlayer" parent="Player"]
stream = ExtResource("2_iywne")
bus = &"Sound Effects"

[node name="BoostFinish" type="AudioStreamPlayer" parent="Player"]
stream = ExtResource("3_p57ef")
volume_db = -8.0
bus = &"Sound Effects"

[node name="Collision" type="AudioStreamPlayer" parent="Player"]
stream = ExtResource("2_lbhrr")
bus = &"Sound Effects"

[node name="Fire" type="AudioStreamPlayer" parent="Player"]
stream = ExtResource("8_vtaks")

[node name="Sprite" type="Sprite2D" parent="Player"]
texture = ExtResource("1_uwrxv")

[node name="CollisionShape" type="CollisionShape2D" parent="Player"]
shape = SubResource("CircleShape2D_uwrxv")

[node name="Camera" type="Camera2D" parent="Player"]
ignore_rotation = false
limit_enabled = false
position_smoothing_speed = 8.0
rotation_smoothing_enabled = true
rotation_smoothing_speed = 15.0

[node name="Hitbox" type="Area2D" parent="Player"]

[node name="CollisionShape" type="CollisionShape2D" parent="Player/Hitbox"]
shape = SubResource("CircleShape2D_lnu2h")
debug_color = Color(0.9686392, 0, 0.4696517, 0.41960785)

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

[node name="UI" type="CanvasLayer" parent="."]

[node name="Control" type="Control" parent="UI"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="BoostText" type="Label" parent="UI/Control"]
layout_mode = 0
offset_right = 40.0
offset_bottom = 24.0
text = "BOOST: 100"

[node name="Distance" type="Label" parent="UI/Control"]
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_top = -12.0
offset_right = 136.0
offset_bottom = 12.0
grow_vertical = 2
text = "DIST: 2048"

[node name="Shader" type="ColorRect" parent="UI"]
material = SubResource("ShaderMaterial_trtic")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(1, 1, 1, 0)

[node name="SpaceStation1" type="Sprite2D" parent="."]
scale = Vector2(2, 2)
texture = ExtResource("12_dinhu")
script = ExtResource("13_trtic")

[node name="Collision" type="TileMapLayer" parent="SpaceStation1"]
scale = Vector2(0.5, 0.5)
tile_map_data = PackedByteArray("AAD6/wgAAAAAAAAAAAD6/wkAAAAAAAAAAAD6/woAAAAAAAAAAAD6/wsAAAAAAAAAAAD6/wwAAAAAAAAAAAD6/w0AAAAAAAAAAAD6/w4AAAAAAAAAAAD6/w8AAAAAAAAAAAD7/w8AAAAAAAAAAAD8/w8AAAAAAAAAAAD9/w8AAAAAAAAAAAD9/w4AAAAAAAAAAAD8/w4AAAAAAAAA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

[node name="EnterHitbox" type="Area2D" parent="SpaceStation1"]
position = Vector2(0, 176)

[node name="CollisionShape2D" type="CollisionShape2D" parent="SpaceStation1/EnterHitbox"]
shape = SubResource("RectangleShape2D_kvuet")

[node name="ExitPoint" type="Node2D" parent="SpaceStation1"]
position = Vector2(0, 245.5)
rotation = 3.1415927

[connection signal="body_shape_entered" from="Player/Hitbox" to="Player" method="_on_hitbox_body_shape_entered"]
[connection signal="area_entered" from="SpaceStation1/EnterHitbox" to="SpaceStation1" method="_on_enter_hitbox_area_entered"]
