From fd5ee404d71e95d333ab22bb7a5dc790dca34025 Mon Sep 17 00:00:00 2001 From: Turtike Date: Thu, 29 Jan 2026 00:20:56 +0800 Subject: [PATCH] Organize files. WIP score system. --- rhythm_game/note/{ => array}/note_array.gd | 0 rhythm_game/note/{ => array}/note_array.gd.uid | 0 rhythm_game/note/{ => array}/note_subset.gd | 0 rhythm_game/note/{ => array}/note_subset.gd.uid | 0 rhythm_game/note/note.gd | 4 ++++ rhythm_game/note/score/score_array.gd | 10 ++++++++++ rhythm_game/note/score/score_array.gd.uid | 1 + rhythm_game/note/{ => view}/lane_view.gd | 0 rhythm_game/note/{ => view}/lane_view.gd.uid | 0 rhythm_game/note/{ => view}/note_view.gd | 0 rhythm_game/note/{ => view}/note_view.gd.uid | 0 rhythm_game/note/{ => view}/view.gd | 0 rhythm_game/note/{ => view}/view.gd.uid | 0 rhythm_game/rhythm_game.tscn | 4 ++-- 14 files changed, 17 insertions(+), 2 deletions(-) rename rhythm_game/note/{ => array}/note_array.gd (100%) rename rhythm_game/note/{ => array}/note_array.gd.uid (100%) rename rhythm_game/note/{ => array}/note_subset.gd (100%) rename rhythm_game/note/{ => array}/note_subset.gd.uid (100%) create mode 100644 rhythm_game/note/score/score_array.gd create mode 100644 rhythm_game/note/score/score_array.gd.uid rename rhythm_game/note/{ => view}/lane_view.gd (100%) rename rhythm_game/note/{ => view}/lane_view.gd.uid (100%) rename rhythm_game/note/{ => view}/note_view.gd (100%) rename rhythm_game/note/{ => view}/note_view.gd.uid (100%) rename rhythm_game/note/{ => view}/view.gd (100%) rename rhythm_game/note/{ => view}/view.gd.uid (100%) diff --git a/rhythm_game/note/note_array.gd b/rhythm_game/note/array/note_array.gd similarity index 100% rename from rhythm_game/note/note_array.gd rename to rhythm_game/note/array/note_array.gd diff --git a/rhythm_game/note/note_array.gd.uid b/rhythm_game/note/array/note_array.gd.uid similarity index 100% rename from rhythm_game/note/note_array.gd.uid rename to rhythm_game/note/array/note_array.gd.uid diff --git a/rhythm_game/note/note_subset.gd b/rhythm_game/note/array/note_subset.gd similarity index 100% rename from rhythm_game/note/note_subset.gd rename to rhythm_game/note/array/note_subset.gd diff --git a/rhythm_game/note/note_subset.gd.uid b/rhythm_game/note/array/note_subset.gd.uid similarity index 100% rename from rhythm_game/note/note_subset.gd.uid rename to rhythm_game/note/array/note_subset.gd.uid diff --git a/rhythm_game/note/note.gd b/rhythm_game/note/note.gd index 76b0ee4..8e318ca 100644 --- a/rhythm_game/note/note.gd +++ b/rhythm_game/note/note.gd @@ -6,6 +6,10 @@ enum TYPE { HOLD_END = 2 } +enum SCORE { + # Should this go here? +} + var hit_beat: float var type: TYPE diff --git a/rhythm_game/note/score/score_array.gd b/rhythm_game/note/score/score_array.gd new file mode 100644 index 0000000..aac2a48 --- /dev/null +++ b/rhythm_game/note/score/score_array.gd @@ -0,0 +1,10 @@ +class_name ScoreArray extends Node + +var notes: NoteArray: set = _set_notes + + +# ======== IMPLEMENTATION ======== # +var scores: Array[Note.SCORE] + +func _set_notes(p_notes: NoteArray) -> void: + notes = p_notes diff --git a/rhythm_game/note/score/score_array.gd.uid b/rhythm_game/note/score/score_array.gd.uid new file mode 100644 index 0000000..bf23790 --- /dev/null +++ b/rhythm_game/note/score/score_array.gd.uid @@ -0,0 +1 @@ +uid://0hodg0ehifaj diff --git a/rhythm_game/note/lane_view.gd b/rhythm_game/note/view/lane_view.gd similarity index 100% rename from rhythm_game/note/lane_view.gd rename to rhythm_game/note/view/lane_view.gd diff --git a/rhythm_game/note/lane_view.gd.uid b/rhythm_game/note/view/lane_view.gd.uid similarity index 100% rename from rhythm_game/note/lane_view.gd.uid rename to rhythm_game/note/view/lane_view.gd.uid diff --git a/rhythm_game/note/note_view.gd b/rhythm_game/note/view/note_view.gd similarity index 100% rename from rhythm_game/note/note_view.gd rename to rhythm_game/note/view/note_view.gd diff --git a/rhythm_game/note/note_view.gd.uid b/rhythm_game/note/view/note_view.gd.uid similarity index 100% rename from rhythm_game/note/note_view.gd.uid rename to rhythm_game/note/view/note_view.gd.uid diff --git a/rhythm_game/note/view.gd b/rhythm_game/note/view/view.gd similarity index 100% rename from rhythm_game/note/view.gd rename to rhythm_game/note/view/view.gd diff --git a/rhythm_game/note/view.gd.uid b/rhythm_game/note/view/view.gd.uid similarity index 100% rename from rhythm_game/note/view.gd.uid rename to rhythm_game/note/view/view.gd.uid diff --git a/rhythm_game/rhythm_game.tscn b/rhythm_game/rhythm_game.tscn index 2578998..75ceba3 100644 --- a/rhythm_game/rhythm_game.tscn +++ b/rhythm_game/rhythm_game.tscn @@ -7,8 +7,8 @@ [ext_resource type="Script" uid="uid://rg6orh6kutai" path="res://resource_type/music.gd" id="5_nsyv8"] [ext_resource type="AudioStream" uid="uid://be8dyt7nfpffw" path="res://sfx/sfx_cowbell.ogg" id="6_ecbku"] [ext_resource type="Script" uid="uid://bbpyym0kgujev" path="res://rhythm_game/metronome.gd" id="7_nsyv8"] -[ext_resource type="Script" uid="uid://8isyo4pxyj1r" path="res://rhythm_game/note/note_array.gd" id="9_10cpq"] -[ext_resource type="Script" uid="uid://c7h7ue6kjgoha" path="res://rhythm_game/note/note_view.gd" id="9_74aio"] +[ext_resource type="Script" uid="uid://8isyo4pxyj1r" path="res://rhythm_game/note/array/note_array.gd" id="9_10cpq"] +[ext_resource type="Script" uid="uid://c7h7ue6kjgoha" path="res://rhythm_game/note/view/note_view.gd" id="9_74aio"] [sub_resource type="Resource" id="Resource_10cpq"] script = ExtResource("5_nsyv8")