308 lines
7.9 KiB
Plaintext
308 lines
7.9 KiB
Plaintext
[gd_scene load_steps=12 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/GridMap.gd" type="Script" id=4]
|
|
[ext_resource path="res://GridMap/GridBack.tscn" type="PackedScene" id=5]
|
|
[ext_resource path="res://GridMap/BackMaterial.tres" type="Material" id=6]
|
|
[ext_resource path="res://midi/MidiPlayer.tscn" type="PackedScene" id=7]
|
|
[ext_resource path="res://midi/MidiPlayer.gd" type="Script" id=8]
|
|
|
|
[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="CubeMesh" id=3]
|
|
|
|
material = ExtResource( 6 )
|
|
custom_aabb = AABB( 0, 0, 0, 0, 0, 0 )
|
|
size = Vector3( 1, 1, 1 )
|
|
subdivide_width = 0
|
|
subdivide_height = 0
|
|
subdivide_depth = 0
|
|
|
|
[node name="Main" type="WorldEnvironment"]
|
|
|
|
environment = SubResource( 2 )
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="HUD" type="Control" parent="." index="0"]
|
|
|
|
anchor_left = 0.0
|
|
anchor_top = 0.0
|
|
anchor_right = 0.0
|
|
anchor_bottom = 0.0
|
|
margin_right = 40.0
|
|
margin_bottom = 40.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="Camera" type="Camera" parent="." index="1"]
|
|
|
|
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="2"]
|
|
|
|
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="3"]
|
|
|
|
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="4" instance=ExtResource( 5 )]
|
|
|
|
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( 3 )
|
|
skeleton = NodePath("..")
|
|
material/0 = null
|
|
_sections_unfolded = [ "Transform" ]
|
|
|
|
[node name="HoldBack" type="MeshInstance" parent="." index="5" instance=ExtResource( 5 )]
|
|
|
|
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( 3 )
|
|
skeleton = NodePath("..")
|
|
material/0 = null
|
|
_sections_unfolded = [ "Transform" ]
|
|
|
|
[node name="NextBack" type="MeshInstance" parent="." index="6" instance=ExtResource( 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( 3 )
|
|
skeleton = NodePath("..")
|
|
material/0 = null
|
|
_sections_unfolded = [ "Transform" ]
|
|
|
|
[node name="DropTimer" type="Timer" parent="." index="7"]
|
|
|
|
process_mode = 1
|
|
wait_time = 1.0
|
|
one_shot = false
|
|
autostart = false
|
|
|
|
[node name="LockDelay" type="Timer" parent="." index="8"]
|
|
|
|
process_mode = 1
|
|
wait_time = 0.5
|
|
one_shot = true
|
|
autostart = false
|
|
|
|
[node name="AutoShiftDelay" type="Timer" parent="." index="9"]
|
|
|
|
process_mode = 1
|
|
wait_time = 0.17
|
|
one_shot = true
|
|
autostart = false
|
|
|
|
[node name="AutoShiftTimer" type="Timer" parent="." index="10"]
|
|
|
|
process_mode = 1
|
|
wait_time = 0.03
|
|
one_shot = false
|
|
autostart = false
|
|
|
|
[node name="MidiPlayer" type="Node" parent="." index="11" instance=ExtResource( 7 )]
|
|
|
|
script = ExtResource( 8 )
|
|
max_polyphony = 64
|
|
file = "res://midi/Tetris - Song A.mid"
|
|
playing = false
|
|
channel_mute = [ false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false ]
|
|
play_speed = 1.0
|
|
volume_db = -24
|
|
key_shift = 0
|
|
loop = true
|
|
loop_start = 1.81
|
|
soundfont = "res://midi/FluidR3 GM.sf2"
|
|
mix_target = 0
|
|
bus = "Master"
|
|
|
|
[node name="LineCLearTimer" type="Timer" parent="MidiPlayer" index="1"]
|
|
|
|
process_mode = 1
|
|
wait_time = 1.41
|
|
one_shot = true
|
|
autostart = false
|
|
|
|
[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="MidiPlayer/LineCLearTimer" to="." method="_on_LineCLearTimer_timeout"]
|
|
|
|
|