add chain note drawing

This commit is contained in:
Zsolt Zitting
2023-09-28 01:58:50 -07:00
parent b5a2e8e8bb
commit d3446ef1c2
5 changed files with 62 additions and 0 deletions
+4
View File
@@ -32,6 +32,7 @@ namespace WacK.Scenes
// TunnelObjects we can instantiate
public static PackedScene noteTouch = GD.Load<PackedScene>("res://Things/TunnelObjects/Notes/NoteTouch.tscn");
public static PackedScene noteHold = GD.Load<PackedScene>("res://Things/TunnelObjects/Notes/NoteHold.tscn");
public static PackedScene noteChain = GD.Load<PackedScene>("res://Things/TunnelObjects/Notes/NoteChain.tscn");
[Export]
public Control noteDisplay;
@@ -89,6 +90,9 @@ namespace WacK.Scenes
case NotePlayType.Touch:
nNote = noteTouch.Instantiate<THNotePlay>();
break;
case NotePlayType.Untimed:
nNote = noteChain.Instantiate<THNotePlay>();
break;
default:
continue;
}