[gd_scene load_steps=15 format=2] [ext_resource path="res://starmap_g8k.jpg" type="Texture" id=1] [ext_resource path="res://Main.gd" type="Script" id=2] [ext_resource path="res://Tetrominos/Mino/MinoLibrary.tres" type="MeshLibrary" id=3] [ext_resource path="res://GridMap.gd" type="Script" id=4] [ext_resource path="res://midi/MidiPlayer.tscn" type="PackedScene" id=5] [ext_resource path="res://Stats.tscn" type="PackedScene" id=6] [ext_resource path="res://fonts/525-ROUN.TTF" type="DynamicFontData" id=7] [sub_resource type="PanoramaSky" id=1] radiance_size = 4 panorama = ExtResource( 1 ) [sub_resource type="Environment" id=2] resource_local_to_scene = true background_mode = 2 background_sky = SubResource( 1 ) background_sky_custom_fov = 0.0 background_color = Color( 0, 0, 0, 1 ) background_energy = 2.0 background_canvas_max_layer = 0 ambient_light_color = Color( 0.469971, 0.542197, 0.6875, 1 ) ambient_light_energy = 0.0 ambient_light_sky_contribution = 1.0 fog_enabled = false fog_color = Color( 0.5, 0.6, 0.7, 1 ) fog_sun_color = Color( 1, 0.9, 0.7, 1 ) fog_sun_amount = 0.0 fog_depth_enabled = true fog_depth_begin = 10.0 fog_depth_curve = 1.0 fog_transmit_enabled = false fog_transmit_curve = 1.0 fog_height_enabled = false fog_height_min = 0.0 fog_height_max = 100.0 fog_height_curve = 1.0 tonemap_mode = 0 tonemap_exposure = 1.0 tonemap_white = 1.0 auto_exposure_enabled = false auto_exposure_scale = 0.4 auto_exposure_min_luma = 0.05 auto_exposure_max_luma = 8.0 auto_exposure_speed = 0.5 ss_reflections_enabled = false ss_reflections_max_steps = 64 ss_reflections_fade_in = 0.15 ss_reflections_fade_out = 2.0 ss_reflections_depth_tolerance = 0.2 ss_reflections_roughness = true ssao_enabled = false ssao_radius = 1.0 ssao_intensity = 1.0 ssao_radius2 = 0.0 ssao_intensity2 = 1.0 ssao_bias = 0.01 ssao_light_affect = 0.0 ssao_color = Color( 0, 0, 0, 1 ) ssao_quality = 0 ssao_blur = 3 ssao_edge_sharpness = 4.0 dof_blur_far_enabled = false dof_blur_far_distance = 10.0 dof_blur_far_transition = 5.0 dof_blur_far_amount = 0.1 dof_blur_far_quality = 1 dof_blur_near_enabled = false dof_blur_near_distance = 2.0 dof_blur_near_transition = 1.0 dof_blur_near_amount = 0.1 dof_blur_near_quality = 1 glow_enabled = false glow_levels/1 = false glow_levels/2 = false glow_levels/3 = true glow_levels/4 = false glow_levels/5 = true glow_levels/6 = false glow_levels/7 = false glow_intensity = 2.26 glow_strength = 1.0 glow_bloom = 0.0 glow_blend_mode = 2 glow_hdr_threshold = 1.0 glow_hdr_scale = 2.0 glow_bicubic_upscale = false adjustment_enabled = false adjustment_brightness = 0.35 adjustment_contrast = 1.0 adjustment_saturation = 0.34 _sections_unfolded = [ "Adjustments", "Ambient Light", "Background", "Fog", "Resource" ] [sub_resource type="SpatialMaterial" id=3] render_priority = 0 flags_transparent = true flags_unshaded = false flags_vertex_lighting = false flags_no_depth_test = false flags_use_point_size = false flags_world_triplanar = false flags_fixed_size = false flags_albedo_tex_force_srgb = false vertex_color_use_as_albedo = false vertex_color_is_srgb = false params_diffuse_mode = 0 params_specular_mode = 0 params_blend_mode = 1 params_cull_mode = 0 params_depth_draw_mode = 0 params_line_width = 1.0 params_point_size = 1.0 params_billboard_mode = 0 params_grow = false params_use_alpha_scissor = false albedo_color = Color( 0.601563, 0.775878, 1, 0.0338039 ) metallic = 0.0 metallic_specular = 0.0 metallic_texture_channel = 0 roughness = 0.46 roughness_texture_channel = 0 emission_enabled = false normal_enabled = false rim_enabled = false clearcoat_enabled = false anisotropy_enabled = false ao_enabled = false depth_enabled = false subsurf_scatter_enabled = false transmission_enabled = false refraction_enabled = false detail_enabled = false uv1_scale = Vector3( 1, 1, 1 ) uv1_offset = Vector3( 0, 0, 0 ) uv1_triplanar = false uv1_triplanar_sharpness = 1.0 uv2_scale = Vector3( 1, 1, 1 ) uv2_offset = Vector3( 0, 0, 0 ) uv2_triplanar = false uv2_triplanar_sharpness = 1.0 proximity_fade_enable = true proximity_fade_distance = 1.0 distance_fade_enable = false _sections_unfolded = [ "Albedo", "Emission", "Metallic", "NormalMap", "Proximity Fade" ] [sub_resource type="CubeMesh" id=4] material = SubResource( 3 ) custom_aabb = AABB( 0, 0, 0, 0, 0, 0 ) size = Vector3( 1, 1, 1 ) subdivide_width = 0 subdivide_height = 0 subdivide_depth = 0 [sub_resource type="CubeMesh" id=5] material = SubResource( 3 ) custom_aabb = AABB( 0, 0, 0, 0, 0, 0 ) size = Vector3( 1, 1, 1 ) subdivide_width = 0 subdivide_height = 0 subdivide_depth = 0 [sub_resource type="DynamicFont" id=6] size = 50 use_mipmaps = true use_filter = false font_data = ExtResource( 7 ) _sections_unfolded = [ "Font", "Settings" ] [sub_resource type="Animation" id=7] resource_name = "Flash" length = 1.0 loop = false step = 0.1 tracks/0/type = "value" tracks/0/path = NodePath("Label:custom_fonts/font:size") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/imported = false tracks/0/enabled = true tracks/0/keys = { "times": PoolRealArray( 0, 0.1, 0.8, 1 ), "transitions": PoolRealArray( 1, 0, 1, 1 ), "update": 0, "values": [ 20, 20, 20, 50 ] } tracks/1/type = "value" tracks/1/path = NodePath("Label:custom_colors/font_color") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/imported = false tracks/1/enabled = true tracks/1/keys = { "times": PoolRealArray( 0, 0.1, 0.8, 1 ), "transitions": PoolRealArray( 1, 1, 1, 1 ), "update": 0, "values": [ Color( 0.445404, 0.710476, 0.820313, 0 ), Color( 0.445404, 0.710476, 0.820313, 0.533765 ), Color( 0.445404, 0.710476, 0.820313, 0.533765 ), Color( 0.445404, 0.710476, 0.820313, 0 ) ] } tracks/2/type = "value" tracks/2/path = NodePath("Label:rect_position") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/imported = false tracks/2/enabled = true tracks/2/keys = { "times": PoolRealArray( 0, 0.1, 0.8, 1 ), "transitions": PoolRealArray( 1, 1, 1, 1 ), "update": 0, "values": [ Vector2( 0, 110 ), Vector2( 0, -50 ), Vector2( 0, -60 ), Vector2( 0, -100 ) ] } [node name="Main" type="WorldEnvironment"] environment = SubResource( 2 ) script = ExtResource( 2 ) [node name="Camera" type="Camera" parent="." index="0"] transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 4.5, 10, 12 ) keep_aspect = 1 cull_mask = 1048575 environment = null h_offset = 0.0 v_offset = 0.0 doppler_tracking = 0 projection = 0 current = false fov = 100.0 size = 1.0 near = 0.05 far = -1.22275e+007 _sections_unfolded = [ "Transform" ] [node name="DirectionalLight" type="DirectionalLight" parent="." index="1"] transform = Transform( 1, 0, 0, 0, 0.999391, -0.0348995, 0, 0.0348995, 0.999391, 0, 0, 50 ) layers = 1 light_color = Color( 1, 1, 1, 1 ) light_energy = 0.5 light_indirect_energy = 1.0 light_negative = false light_specular = 0.5 light_bake_mode = 1 light_cull_mask = -1 shadow_enabled = false shadow_color = Color( 0, 0, 0, 1 ) shadow_bias = 0.1 shadow_contact = 0.0 shadow_reverse_cull_face = false editor_only = false directional_shadow_mode = 2 directional_shadow_split_1 = 0.1 directional_shadow_split_2 = 0.2 directional_shadow_split_3 = 0.5 directional_shadow_blend_splits = false directional_shadow_normal_bias = 0.8 directional_shadow_bias_split_scale = 0.25 directional_shadow_depth_range = 0 directional_shadow_max_distance = 200.0 _sections_unfolded = [ "Light", "Transform" ] [node name="GridMap" type="GridMap" parent="." index="2"] theme = ExtResource( 3 ) cell_size = Vector3( 1, 1, 1 ) cell_octant_size = 8 cell_center_x = false cell_center_y = false cell_center_z = false cell_scale = 1.0 collision_layer = 1 collision_mask = 1 data = { "cells": PoolIntArray( ) } script = ExtResource( 4 ) _sections_unfolded = [ "Cell", "Transform" ] __meta__ = { "_editor_clip_": 1, "_editor_floor_": Vector3( 0, -1, 0 ) } NB_LINES = 20 NB_COLLUMNS = 10 [node name="GridBack" type="MeshInstance" parent="." index="3"] transform = Transform( 10, 0, 0, 0, 20, 0, 0, 0, 0.1, 4.5, 9.5, -1 ) layers = 1 material_override = null cast_shadow = 1 extra_cull_margin = 0.0 use_in_baked_light = false lod_min_distance = 0.0 lod_min_hysteresis = 0.0 lod_max_distance = 0.0 lod_max_hysteresis = 0.0 mesh = SubResource( 4 ) skeleton = NodePath("..") material/0 = null _sections_unfolded = [ "Transform" ] [node name="HoldBack" type="MeshInstance" parent="." index="4"] transform = Transform( 7, 0, 0, 0, 7, 0, 0, 0, 0.1, -5, 16, -1 ) layers = 1 material_override = null cast_shadow = 1 extra_cull_margin = 0.0 use_in_baked_light = false lod_min_distance = 0.0 lod_min_hysteresis = 0.0 lod_max_distance = 0.0 lod_max_hysteresis = 0.0 mesh = SubResource( 5 ) skeleton = NodePath("..") material/0 = null _sections_unfolded = [ "Transform" ] [node name="NextBack" type="MeshInstance" parent="." index="5"] transform = Transform( 7, 0, 0, 0, 7, 0, 0, 0, 0.1, 14, 16, -1 ) layers = 1 material_override = null cast_shadow = 1 extra_cull_margin = 0.0 use_in_baked_light = false lod_min_distance = 0.0 lod_min_hysteresis = 0.0 lod_max_distance = 0.0 lod_max_hysteresis = 0.0 mesh = SubResource( 5 ) skeleton = NodePath("..") material/0 = null _sections_unfolded = [ "Transform" ] [node name="DropTimer" type="Timer" parent="." index="6"] process_mode = 1 wait_time = 1.0 one_shot = false autostart = false [node name="LockDelay" type="Timer" parent="." index="7"] process_mode = 1 wait_time = 0.5 one_shot = true autostart = false [node name="AutoShiftDelay" type="Timer" parent="." index="8"] process_mode = 1 wait_time = 0.17 one_shot = true autostart = false [node name="AutoShiftTimer" type="Timer" parent="." index="9"] process_mode = 1 wait_time = 0.03 one_shot = false autostart = false [node name="LineCLearTimer" type="Timer" parent="." index="10"] process_mode = 1 wait_time = 1.41 one_shot = true autostart = false [node name="MidiPlayer" parent="." index="11" instance=ExtResource( 5 )] file = "res://midi/Tetris - Song A.mid" volume_db = -24 loop = true loop_start = 1.71 soundfont = "res://midi/FluidR3 GM.sf2" [node name="Stats" parent="." index="12" instance=ExtResource( 6 )] visible = false [node name="FlashText" type="Control" parent="." index="13"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_right = 500.0 margin_bottom = 500.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 0 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 1 [node name="Label" type="Label" parent="FlashText" index="0"] anchor_left = 0.0 anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 margin_left = 1.0 margin_top = -100.0 margin_right = 501.0 margin_bottom = 400.0 rect_pivot_offset = Vector2( 0, 0 ) rect_clip_content = false mouse_filter = 2 mouse_default_cursor_shape = 0 size_flags_horizontal = 1 size_flags_vertical = 4 custom_fonts/font = SubResource( 6 ) custom_colors/font_color = Color( 0.445404, 0.710476, 0.820313, 0 ) align = 1 valign = 1 percent_visible = 1.0 lines_skipped = 0 max_lines_visible = -1 _sections_unfolded = [ "Rect", "custom_colors", "custom_fonts" ] [node name="AnimationPlayer" type="AnimationPlayer" parent="FlashText" index="1"] root_node = NodePath("..") autoplay = "" playback_process_mode = 1 playback_default_blend_time = 0.0 playback_speed = 1.0 anims/Flash = SubResource( 7 ) blend_times = [ ] _sections_unfolded = [ "Playback Options" ] [connection signal="timeout" from="DropTimer" to="." method="_on_DropTimer_timeout"] [connection signal="timeout" from="LockDelay" to="." method="_on_LockDelay_timeout"] [connection signal="timeout" from="AutoShiftDelay" to="." method="_on_AutoShiftDelay_timeout"] [connection signal="timeout" from="AutoShiftTimer" to="." method="_on_AutoShiftTimer_timeout"] [connection signal="timeout" from="LineCLearTimer" to="." method="_on_LineCLearTimer_timeout"] [connection signal="animation_finished" from="FlashText/AnimationPlayer" to="." method="_on_AnimationPlayer_animation_finished"] [connection signal="animation_finished" from="FlashText/AnimationPlayer" to="FlashText" method="_on_AnimationPlayer_animation_finished"]