2021-01-29 19:26:44 +10:30
|
|
|
[gd_scene load_steps=18 format=2]
|
2021-01-24 02:49:08 +10:30
|
|
|
|
|
|
|
[ext_resource path="res://scripts/InputHandler.gd" type="Script" id=1]
|
|
|
|
[ext_resource path="res://assets/text-4k.png" type="Texture" id=2]
|
|
|
|
[ext_resource path="res://scripts/ScreenFilter.gd" type="Script" id=4]
|
|
|
|
[ext_resource path="res://scripts/NoteViewport.gd" type="Script" id=5]
|
|
|
|
[ext_resource path="res://scripts/NotePainter.gd" type="Script" id=6]
|
|
|
|
[ext_resource path="res://scripts/NoteHandler.gd" type="Script" id=8]
|
|
|
|
[ext_resource path="res://scripts/Receptors.gd" type="Script" id=9]
|
|
|
|
[ext_resource path="res://shaders/notelines.shader" type="Shader" id=10]
|
|
|
|
[ext_resource path="res://shaders/notemesh.shader" type="Shader" id=11]
|
|
|
|
[ext_resource path="res://shaders/receptors.shader" type="Shader" id=12]
|
|
|
|
[ext_resource path="res://scripts/Bezel.gd" type="Script" id=13]
|
|
|
|
[ext_resource path="res://Menu.tscn" type="PackedScene" id=15]
|
|
|
|
|
|
|
|
[sub_resource type="ShaderMaterial" id=1]
|
|
|
|
shader = ExtResource( 12 )
|
|
|
|
shader_param/num_receptors = 8
|
|
|
|
shader_param/receptor_offset = 0.392699
|
|
|
|
shader_param/line_color = Color( 0, 0, 1, 1 )
|
|
|
|
shader_param/dot_color = Color( 0, 0, 1, 1 )
|
|
|
|
shader_param/shadow_color = Color( 0, 0, 0, 0.57 )
|
|
|
|
shader_param/line_thickness = 0.00434783
|
|
|
|
shader_param/dot_radius = 0.026087
|
|
|
|
shader_param/shadow_thickness = 0.0173913
|
|
|
|
shader_param/px = 0.00108696
|
|
|
|
shader_param/px2 = 0.00217391
|
|
|
|
shader_param/alpha = 1.0
|
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[sub_resource type="ShaderMaterial" id=2]
|
2021-01-24 02:49:08 +10:30
|
|
|
shader = ExtResource( 11 )
|
|
|
|
shader_param/bps = null
|
|
|
|
shader_param/star_color = null
|
|
|
|
shader_param/held_color = null
|
|
|
|
shader_param/screen_size = null
|
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[sub_resource type="ShaderMaterial" id=3]
|
2021-01-24 02:49:08 +10:30
|
|
|
shader = ExtResource( 10 )
|
|
|
|
shader_param/line_color = Color( 0.8, 0.8, 1, 0.8 )
|
|
|
|
shader_param/line_color_double = Color( 1, 1, 0.6, 0.9 )
|
|
|
|
shader_param/dot_color = Color( 1, 1, 1, 0.8 )
|
|
|
|
shader_param/bps = 1.0
|
|
|
|
shader_param/line_thickness = 0.012
|
|
|
|
shader_param/line_thickness_min = 0.0
|
|
|
|
shader_param/dot_thickness = 0.033
|
|
|
|
shader_param/dot_fullbright_thickness = 0.013
|
|
|
|
shader_param/max_angle = 1.0708
|
|
|
|
shader_param/max_dist = 1.25
|
|
|
|
shader_param/array_postmul = Vector3( 1, 1, 1 )
|
|
|
|
shader_param/array_sidelen = 16
|
|
|
|
shader_param/array_size = 256
|
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[sub_resource type="CanvasItemMaterial" id=4]
|
2021-01-24 02:49:08 +10:30
|
|
|
blend_mode = 4
|
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[sub_resource type="Curve" id=5]
|
2021-01-24 02:49:08 +10:30
|
|
|
min_value = -1.0
|
|
|
|
_data = [ Vector2( -1, -1 ), 0.0, 0.0, 0, 0, Vector2( 0, 0 ), 2.0, 2.0, 1, 1, Vector2( 1, 1 ), 0.0, 0.0, 0, 0 ]
|
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[node name="RadialGame" type="AspectRatioContainer"]
|
2021-01-29 16:59:52 +10:30
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2021-01-24 02:49:08 +10:30
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[node name="Square" type="Control" parent="."]
|
|
|
|
margin_right = 1080.0
|
|
|
|
margin_bottom = 1080.0
|
|
|
|
|
|
|
|
[node name="video" type="TextureRect" parent="Square" groups=[
|
2021-01-29 16:59:52 +10:30
|
|
|
"VideoTexRects",
|
|
|
|
]]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2021-01-24 02:49:08 +10:30
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
rect_pivot_offset = Vector2( 540, 540 )
|
|
|
|
mouse_filter = 2
|
2021-01-29 16:59:52 +10:30
|
|
|
expand = true
|
|
|
|
stretch_mode = 6
|
2021-01-24 02:49:08 +10:30
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[node name="ScreenFilter" type="ColorRect" parent="Square"]
|
2021-01-24 02:49:08 +10:30
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
color = Color( 0, 0, 0, 1 )
|
|
|
|
script = ExtResource( 4 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[node name="Receptors" type="Control" parent="Square"]
|
|
|
|
material = SubResource( 1 )
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
script = ExtResource( 9 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="NoteHandler" type="Control" parent="Square"]
|
2021-01-24 02:49:08 +10:30
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
2021-01-29 19:26:44 +10:30
|
|
|
script = ExtResource( 8 )
|
2021-01-24 02:49:08 +10:30
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[node name="Viewport" type="Viewport" parent="Square/NoteHandler"]
|
2021-01-24 02:49:08 +10:30
|
|
|
size = Vector2( 1080, 1080 )
|
|
|
|
transparent_bg = true
|
|
|
|
usage = 1
|
|
|
|
render_target_v_flip = true
|
|
|
|
script = ExtResource( 5 )
|
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[node name="Center" type="Node2D" parent="Square/NoteHandler/Viewport"]
|
2021-01-24 02:49:08 +10:30
|
|
|
position = Vector2( 540, 540 )
|
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[node name="SlideTrailHandler" type="Node2D" parent="Square/NoteHandler/Viewport/Center"]
|
2021-01-24 02:49:08 +10:30
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[node name="JudgeText" type="MeshInstance2D" parent="Square/NoteHandler/Viewport/Center"]
|
2021-01-24 02:49:08 +10:30
|
|
|
texture = ExtResource( 2 )
|
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[node name="meshinstance" type="MeshInstance2D" parent="Square/NoteHandler/Viewport/Center"]
|
|
|
|
material = SubResource( 2 )
|
|
|
|
|
|
|
|
[node name="notelines" type="MeshInstance2D" parent="Square/NoteHandler/Viewport/Center"]
|
2021-01-24 02:49:08 +10:30
|
|
|
material = SubResource( 3 )
|
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[node name="Painter" type="Node2D" parent="Square/NoteHandler"]
|
2021-01-24 02:49:08 +10:30
|
|
|
material = SubResource( 4 )
|
|
|
|
script = ExtResource( 6 )
|
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[node name="Menu" parent="Square" instance=ExtResource( 15 )]
|
2021-01-24 02:49:08 +10:30
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2021-01-29 19:26:44 +10:30
|
|
|
NoteHandlerPath = NodePath("../NoteHandler")
|
|
|
|
ReceptorsPath = NodePath("../Receptors")
|
|
|
|
ease_curve = SubResource( 5 )
|
2021-01-24 02:49:08 +10:30
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[node name="Bezel" type="Control" parent="Square"]
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2021-01-24 02:49:08 +10:30
|
|
|
script = ExtResource( 13 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[node name="InputHandler" type="Control" parent="Square"]
|
2021-01-24 02:49:08 +10:30
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_use_anchors_": false
|
|
|
|
}
|
2021-01-24 16:18:10 +10:30
|
|
|
|
2021-01-29 19:26:44 +10:30
|
|
|
[connection signal="column_pressed" from="Square/InputHandler" to="Square/NoteHandler" method="_on_InputHandler_column_pressed"]
|
|
|
|
[connection signal="column_released" from="Square/InputHandler" to="Square/NoteHandler" method="_on_InputHandler_column_released"]
|