RhythmGame/main.tscn

227 lines
6.1 KiB
Plaintext
Raw Normal View History

2020-03-12 23:05:12 +10:30
[gd_scene load_steps=23 format=2]
2019-11-10 15:09:14 +10:30
[ext_resource path="res://main.gd" type="Script" id=1]
[ext_resource path="res://video.gd" type="Script" id=2]
[ext_resource path="res://ScreenFilter.gd" type="Script" id=3]
[ext_resource path="res://shaders/receptors.shader" type="Shader" id=4]
[ext_resource path="res://Receptors.gd" type="Script" id=5]
[ext_resource path="res://NoteHandler.gd" type="Script" id=6]
[ext_resource path="res://NoteViewport.gd" type="Script" id=7]
[ext_resource path="res://assets/text-4k.png" type="Texture" id=8]
[ext_resource path="res://shaders/notemesh.shader" type="Shader" id=9]
[ext_resource path="res://shaders/notelines.shader" type="Shader" id=10]
[ext_resource path="res://NotePainter.gd" type="Script" id=11]
[ext_resource path="res://Menu.gd" type="Script" id=12]
[ext_resource path="res://shaders/scoretext.tres" type="Material" id=13]
[ext_resource path="res://ScoreText.gd" type="Script" id=14]
[ext_resource path="res://Bezel.gd" type="Script" id=15]
[ext_resource path="res://assets/NotoSans.tres" type="DynamicFont" id=16]
[ext_resource path="res://InputHandler.gd" type="Script" id=17]
2020-03-12 23:05:12 +10:30
[ext_resource path="res://assets/test/TIT FOR TAT.avi" type="VideoStream" id=18]
[sub_resource type="ShaderMaterial" id=1]
shader = ExtResource( 4 )
shader_param/num_receptors = 8
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, 1 )
shader_param/line_thickness = 0.006
shader_param/dot_radius = 0.033
shader_param/shadow_thickness = 0.01
shader_param/shadow_thickness_taper = 0.33
shader_param/px = 0.002
2020-03-12 23:05:12 +10:30
[sub_resource type="ShaderMaterial" id=2]
shader = ExtResource( 9 )
shader_param/bps = null
shader_param/star_color = null
shader_param/held_color = null
shader_param/screen_size = null
2020-03-12 23:05:12 +10:30
[sub_resource type="ShaderMaterial" id=3]
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 )
2019-11-10 15:09:14 +10:30
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
2019-11-10 15:09:14 +10:30
[sub_resource type="CanvasItemMaterial" id=4]
blend_mode = 4
2019-11-10 15:09:14 +10:30
[node name="main" type="Node2D"]
position = Vector2( 540, 540 )
2019-11-10 15:09:14 +10:30
script = ExtResource( 1 )
2019-11-18 13:11:02 +10:30
__meta__ = {
"_edit_horizontal_guides_": [ ],
"_edit_vertical_guides_": [ ]
2019-11-18 13:11:02 +10:30
}
2019-11-10 15:09:14 +10:30
2020-03-12 23:05:12 +10:30
[node name="VideoPlayer" type="VideoPlayer" parent="."]
visible = false
margin_left = -640.0
margin_top = -360.0
margin_right = 640.0
margin_bottom = 360.0
stream = ExtResource( 18 )
volume_db = -80.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="music" type="AudioStreamPlayer" parent="."]
2019-11-10 15:09:14 +10:30
[node name="video" type="VideoPlayer" parent="."]
2019-11-18 13:11:02 +10:30
margin_left = -540.0
margin_top = -540.0
margin_right = 540.0
margin_bottom = 540.0
2019-11-10 15:09:14 +10:30
grow_horizontal = 2
grow_vertical = 2
rect_pivot_offset = Vector2( 540, 540 )
mouse_filter = 2
volume_db = -80.0
script = ExtResource( 2 )
2019-11-10 15:09:14 +10:30
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ScreenFilter" type="Node2D" parent="."]
script = ExtResource( 3 )
2019-11-10 15:09:14 +10:30
2019-12-18 15:59:56 +10:30
[node name="Receptors" type="MeshInstance2D" parent="."]
material = SubResource( 1 )
script = ExtResource( 5 )
2019-11-10 15:09:14 +10:30
[node name="NoteHandler" type="Node2D" parent="."]
script = ExtResource( 6 )
[node name="Viewport" type="Viewport" parent="NoteHandler"]
size = Vector2( 540, 540 )
transparent_bg = true
usage = 1
render_target_v_flip = true
script = ExtResource( 7 )
[node name="Center" type="Node2D" parent="NoteHandler/Viewport"]
position = Vector2( 270, 270 )
scale = Vector2( 0.5, 0.5 )
[node name="SlideTrailHandler" type="Node2D" parent="NoteHandler/Viewport/Center"]
2019-11-10 15:09:14 +10:30
[node name="JudgeText" type="MeshInstance2D" parent="NoteHandler/Viewport/Center"]
texture = ExtResource( 8 )
[node name="meshinstance" type="MeshInstance2D" parent="NoteHandler/Viewport/Center"]
2020-03-12 23:05:12 +10:30
material = SubResource( 2 )
2019-11-10 15:09:14 +10:30
[node name="notelines" type="MeshInstance2D" parent="NoteHandler/Viewport/Center"]
2020-03-12 23:05:12 +10:30
material = SubResource( 3 )
[node name="Painter" type="Node2D" parent="NoteHandler"]
material = SubResource( 4 )
script = ExtResource( 11 )
2020-03-12 23:05:12 +10:30
[node name="Menu" type="Control" parent="."]
margin_left = -540.0
margin_top = -540.0
margin_right = 540.0
margin_bottom = 540.0
rect_pivot_offset = Vector2( 540, 540 )
rect_clip_content = true
script = ExtResource( 12 )
2020-03-12 23:05:12 +10:30
__meta__ = {
"_edit_use_anchors_": false
}
[node name="ScoreText" type="Node2D" parent="Menu"]
material = ExtResource( 13 )
script = ExtResource( 14 )
2019-11-10 15:09:14 +10:30
[node name="Bezel" type="Node2D" parent="."]
script = ExtResource( 15 )
2019-11-10 15:09:14 +10:30
[node name="InputHandler" type="Label" parent="."]
margin_left = -540.0
2019-11-18 13:11:02 +10:30
margin_top = -540.0
margin_right = 540.0
2019-11-18 13:11:02 +10:30
margin_bottom = 540.0
custom_fonts/font = ExtResource( 16 )
2019-11-10 15:09:14 +10:30
text = "Fingers on the screen:"
script = ExtResource( 17 )
2020-03-12 23:05:12 +10:30
__meta__ = {
"_edit_use_anchors_": false
}
2020-03-12 23:05:12 +10:30
[node name="Label" type="Label" parent="InputHandler"]
margin_top = 136.0
margin_right = 116.0
margin_bottom = 150.0
text = "Subsampling (X, Y)"
[node name="SSXSlider" type="HSlider" parent="InputHandler"]
margin_left = 10.0
2020-03-12 23:05:12 +10:30
margin_top = 160.0
margin_right = 310.0
2020-03-12 23:05:12 +10:30
margin_bottom = 156.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
min_value = 0.1
max_value = 2.0
step = 0.01
value = 1.0
tick_count = 3
ticks_on_borders = true
2020-03-12 23:05:12 +10:30
__meta__ = {
"_edit_use_anchors_": false
}
[node name="SSYSlider" type="HSlider" parent="InputHandler"]
margin_left = 10.0
2020-03-12 23:05:12 +10:30
margin_top = 176.0
margin_right = 310.0
2020-03-12 23:05:12 +10:30
margin_bottom = 186.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
min_value = 0.1
max_value = 2.0
step = 0.01
value = 1.0
tick_count = 3
ticks_on_borders = true
__meta__ = {
"_edit_use_anchors_": false
}
[node name="FilterSlider" type="HSlider" parent="InputHandler"]
margin_left = 16.0
margin_top = 400.0
margin_right = 316.0
margin_bottom = 416.0
max_value = 1.0
step = 0.01
value = 0.2
__meta__ = {
"_edit_use_anchors_": false
}
2020-03-12 23:05:12 +10:30
[node name="VsyncButton" type="CheckButton" parent="InputHandler"]
margin_left = 4.0
margin_top = 90.0
margin_right = 121.0
margin_bottom = 130.0
2020-03-30 23:21:20 +10:30
pressed = true
2020-03-12 23:05:12 +10:30
text = "Vsync"
__meta__ = {
"_edit_use_anchors_": false
}