cleanup, add various placeholders

This commit is contained in:
msk
2023-09-29 23:49:56 -07:00
parent d46d3aff6d
commit a20ace4e5d
7 changed files with 87 additions and 33 deletions
+24 -3
View File
@@ -1,12 +1,14 @@
[gd_scene load_steps=18 format=3 uid="uid://bqh00ot0csqmk"] [gd_scene load_steps=19 format=3 uid="uid://bqh00ot0csqmk"]
[ext_resource type="Script" path="res://Scripts/Scenes/Play/Play.cs" id="1_asytu"] [ext_resource type="Script" path="res://Scripts/Scenes/Play/Play.cs" id="1_asytu"]
[ext_resource type="PackedScene" uid="uid://cyetvgmwnoy8l" path="res://Things/Background.tscn" id="2_8g6gv"] [ext_resource type="PackedScene" uid="uid://cyetvgmwnoy8l" path="res://Things/Background.tscn" id="2_8g6gv"]
[ext_resource type="Texture2D" uid="uid://cfvv520hv5lss" path="res://_Assets/Textures/background-placeholder.jpg" id="2_k05nq"]
[ext_resource type="Shader" path="res://Shaders/Cutout2D.gdshader" id="3_rjbyl"] [ext_resource type="Shader" path="res://Shaders/Cutout2D.gdshader" id="3_rjbyl"]
[ext_resource type="Script" path="res://Scripts/Scenes/Play/Audio/BGM.cs" id="4_c2dke"] [ext_resource type="Script" path="res://Scripts/Scenes/Play/Audio/BGM.cs" id="4_c2dke"]
[ext_resource type="Script" path="res://Scripts/Scenes/Play/Audio/SFX.cs" id="5_owrd5"] [ext_resource type="Script" path="res://Scripts/Scenes/Play/Audio/SFX.cs" id="5_owrd5"]
[sub_resource type="Environment" id="Environment_nefjb"] [sub_resource type="Environment" id="Environment_nefjb"]
background_mode = 3
ambient_light_source = 1 ambient_light_source = 1
ambient_light_energy = 0.0 ambient_light_energy = 0.0
reflected_light_source = 1 reflected_light_source = 1
@@ -61,7 +63,7 @@ uv1_scale = Vector3(-1, 1, 1)
[sub_resource type="ViewportTexture" id="ViewportTexture_w20vk"] [sub_resource type="ViewportTexture" id="ViewportTexture_w20vk"]
viewport_path = NodePath("Mask") viewport_path = NodePath("Mask")
[sub_resource type="ShaderMaterial" id="ShaderMaterial_7nje4"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_2pv0x"]
resource_local_to_scene = true resource_local_to_scene = true
shader = ExtResource("3_rjbyl") shader = ExtResource("3_rjbyl")
shader_parameter/mask = SubResource("ViewportTexture_w20vk") shader_parameter/mask = SubResource("ViewportTexture_w20vk")
@@ -116,6 +118,25 @@ mesh = SubResource("ArrayMesh_qc82q")
skeleton = NodePath("") skeleton = NodePath("")
surface_material_override/0 = SubResource("StandardMaterial3D_3rv8i") surface_material_override/0 = SubResource("StandardMaterial3D_3rv8i")
[node name="Background" type="Control" parent="."]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="TextureRect" type="TextureRect" parent="Background"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("2_k05nq")
expand_mode = 1
stretch_mode = 6
[node name="2D Viewport" type="SubViewport" parent="."] [node name="2D Viewport" type="SubViewport" parent="."]
disable_3d = true disable_3d = true
own_world_3d = true own_world_3d = true
@@ -140,7 +161,7 @@ anchor_mode = 0
editor_draw_screen = false editor_draw_screen = false
[node name="Background" parent="2D Viewport/Viewport Control" instance=ExtResource("2_8g6gv")] [node name="Background" parent="2D Viewport/Viewport Control" instance=ExtResource("2_8g6gv")]
material = SubResource("ShaderMaterial_7nje4") material = SubResource("ShaderMaterial_2pv0x")
layout_mode = 1 layout_mode = 1
offset_top = -1920.0 offset_top = -1920.0
offset_right = 1920.0 offset_right = 1920.0
+4 -27
View File
@@ -63,9 +63,9 @@ namespace WacK.Scenes
public Viewport rightViewport; public Viewport rightViewport;
private Chart chart; private Chart chart;
// Indices point to the NEXT thing to look for. We process that thing once // Indices point to the NEXT thing in chart to look for. We process
// the song time is at or later than the thing's time. // that thing once the song time is at or later than the thing's time.
private int chordNextIdx = 0; private int playNextIdx = 0;
private int eventNextIdx = 0; private int eventNextIdx = 0;
// base scroll speed, which we can apply multipliers on // base scroll speed, which we can apply multipliers on
@@ -156,7 +156,7 @@ namespace WacK.Scenes
foreach (var e in l) foreach (var e in l)
{ {
GD.Print($"Passed event {e.type}(pos={e.pos},size={e.size}) at {t}"); GD.Print($"Passed event {e.type} at {t}");
switch (e.type) switch (e.type)
{ {
case NoteEventType.BGAdd: case NoteEventType.BGAdd:
@@ -178,29 +178,6 @@ namespace WacK.Scenes
scrollDisplay.Position = nPos; scrollDisplay.Position = nPos;
} }
private async void TestBGAnim()
{
await ToSignal(GetTree().CreateTimer(1.5), SceneTreeTimer.SignalName.Timeout);
// clockwise all
background.SetSegments(0, 60, true, DrawDirection.Clockwise);
await ToSignal(GetTree().CreateTimer(1.5), SceneTreeTimer.SignalName.Timeout);
background.SetSegments(0, 60, false, DrawDirection.Clockwise);
await ToSignal(GetTree().CreateTimer(1.5), SceneTreeTimer.SignalName.Timeout);
// counterclockwise all
background.SetSegments(0, 60, true, DrawDirection.CounterClockwise);
await ToSignal(GetTree().CreateTimer(1.5), SceneTreeTimer.SignalName.Timeout);
background.SetSegments(0, 60, false, DrawDirection.CounterClockwise);
await ToSignal(GetTree().CreateTimer(1.5), SceneTreeTimer.SignalName.Timeout);
// center all
background.SetSegments(0, 60, true, DrawDirection.Center);
await ToSignal(GetTree().CreateTimer(1.5), SceneTreeTimer.SignalName.Timeout);
background.SetSegments(0, 60, false, DrawDirection.Center);
await ToSignal(GetTree().CreateTimer(1.5), SceneTreeTimer.SignalName.Timeout);
}
public override void _Process(double delta) public override void _Process(double delta)
{ {
PlayLoop(); PlayLoop();
@@ -80,7 +80,6 @@ namespace WacK.Things.TunnelObjects
} }
await ToSignal(GetTree(), "process_frame"); await ToSignal(GetTree(), "process_frame");
} }
GD.Print("Finished BG anim!");
} }
} }
} }
+12 -1
View File
@@ -1,8 +1,11 @@
[gd_scene load_steps=3 format=3 uid="uid://bcindeb5bakb3"] [gd_scene load_steps=4 format=3 uid="uid://bcindeb5bakb3"]
[ext_resource type="Script" path="res://Scripts/Things/TunnelObjects/THNotePlay.cs" id="1_e4xxi"] [ext_resource type="Script" path="res://Scripts/Things/TunnelObjects/THNotePlay.cs" id="1_e4xxi"]
[ext_resource type="Texture2D" uid="uid://cfm2r0ha81eum" path="res://_Assets/Textures/Notes/SwipeCCW.png" id="2_yb0qd"] [ext_resource type="Texture2D" uid="uid://cfm2r0ha81eum" path="res://_Assets/Textures/Notes/SwipeCCW.png" id="2_yb0qd"]
[sub_resource type="LabelSettings" id="LabelSettings_up7en"]
font_size = 86
[node name="NoteSwipeCCW" type="Control" node_paths=PackedStringArray("noteBase")] [node name="NoteSwipeCCW" type="Control" node_paths=PackedStringArray("noteBase")]
layout_mode = 3 layout_mode = 3
anchors_preset = 0 anchors_preset = 0
@@ -23,3 +26,11 @@ grow_vertical = 2
texture = ExtResource("2_yb0qd") texture = ExtResource("2_yb0qd")
patch_margin_left = 12 patch_margin_left = 12
patch_margin_right = 12 patch_margin_right = 12
[node name="Label" type="Label" parent="."]
offset_left = 9.0
offset_top = -159.0
offset_right = 421.0
offset_bottom = -48.0
text = ">>>>>>>>>>>>>>>>"
label_settings = SubResource("LabelSettings_up7en")
+13 -1
View File
@@ -1,8 +1,11 @@
[gd_scene load_steps=3 format=3 uid="uid://wk634bobe32k"] [gd_scene load_steps=4 format=3 uid="uid://wk634bobe32k"]
[ext_resource type="Script" path="res://Scripts/Things/TunnelObjects/THNotePlay.cs" id="1_aasqx"] [ext_resource type="Script" path="res://Scripts/Things/TunnelObjects/THNotePlay.cs" id="1_aasqx"]
[ext_resource type="Texture2D" uid="uid://rrwjokjt4jb8" path="res://_Assets/Textures/Notes/SwipeCW.png" id="2_ttxox"] [ext_resource type="Texture2D" uid="uid://rrwjokjt4jb8" path="res://_Assets/Textures/Notes/SwipeCW.png" id="2_ttxox"]
[sub_resource type="LabelSettings" id="LabelSettings_1hjvl"]
font_size = 86
[node name="NoteSwipeCW" type="Control" node_paths=PackedStringArray("noteBase")] [node name="NoteSwipeCW" type="Control" node_paths=PackedStringArray("noteBase")]
layout_mode = 3 layout_mode = 3
anchors_preset = 0 anchors_preset = 0
@@ -23,3 +26,12 @@ grow_vertical = 2
texture = ExtResource("2_ttxox") texture = ExtResource("2_ttxox")
patch_margin_left = 12 patch_margin_left = 12
patch_margin_right = 12 patch_margin_right = 12
[node name="Label" type="Label" parent="."]
layout_mode = 0
offset_left = 9.0
offset_top = -159.0
offset_right = 421.0
offset_bottom = -48.0
text = "<<<<<<<<<<<<<<<<<<<<<<<<"
label_settings = SubResource("LabelSettings_1hjvl")
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://cfvv520hv5lss"
path="res://.godot/imported/background-placeholder.jpg-06c92c099a6e621a47176e83b0f7af77.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://_Assets/Textures/background-placeholder.jpg"
dest_files=["res://.godot/imported/background-placeholder.jpg-06c92c099a6e621a47176e83b0f7af77.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1