From 6eb991d540ac53de96d054d67bd8279a753343bb Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Wed, 22 May 2019 16:55:06 +0900 Subject: [PATCH] Created basic tempo controller and initated song reader creation into playfield. No actual notes yet. --- GameMakerStudio2/Bandori/Bandori.yyp | 8 +++++++ .../Bandori/datafiles/TestSongFormat.txt | 7 ++++++ .../datafiles_yy/TestSongFormat.txt.yy | 19 +++++++++++++++ .../objects/background_field/Create_0.gml | 4 +++- .../objects/background_field/Draw_0.gml | 5 +++- .../objects/background_field/KeyPress_35.gml | 3 +++ .../background_field/background_field.yy | 10 ++++++++ .../objects/game_initializer/Create_0.gml | 3 ++- .../music_selection_controller/Create_0.gml | 1 + .../rooms/music_selection/music_selection.yy | 4 +++- .../song_file_reader/song_file_reader.gml | 23 +++++++++++-------- .../168f6e4f-30e3-4950-868f-6ea48b36a8d8.yy | 2 +- 12 files changed, 74 insertions(+), 15 deletions(-) create mode 100644 GameMakerStudio2/Bandori/datafiles/TestSongFormat.txt create mode 100644 GameMakerStudio2/Bandori/datafiles_yy/TestSongFormat.txt.yy create mode 100644 GameMakerStudio2/Bandori/objects/background_field/KeyPress_35.gml diff --git a/GameMakerStudio2/Bandori/Bandori.yyp b/GameMakerStudio2/Bandori/Bandori.yyp index e92bdb3..8924321 100644 --- a/GameMakerStudio2/Bandori/Bandori.yyp +++ b/GameMakerStudio2/Bandori/Bandori.yyp @@ -302,6 +302,14 @@ "resourceType": "GMScript" } }, + { + "Key": "dc814062-491a-4f3d-9968-41c49ec0a64a", + "Value": { + "id": "aae0bed1-70e7-492f-8288-ef4ce564eb81", + "resourcePath": "datafiles_yy\\TestSongFormat.txt.yy", + "resourceType": "GMIncludedFile" + } + }, { "Key": "e1b8208f-ed03-4442-8be3-eed205abd614", "Value": { diff --git a/GameMakerStudio2/Bandori/datafiles/TestSongFormat.txt b/GameMakerStudio2/Bandori/datafiles/TestSongFormat.txt new file mode 100644 index 0000000..1ced3ff --- /dev/null +++ b/GameMakerStudio2/Bandori/datafiles/TestSongFormat.txt @@ -0,0 +1,7 @@ +SEKAIWA KOINI OCHITERU +Sekaiwa_Koini_Ochiteru +0 +130 +1,2,4.333333333 +1,6,4.333333333 +1,4,5.7777777777777777777777744444444‬ diff --git a/GameMakerStudio2/Bandori/datafiles_yy/TestSongFormat.txt.yy b/GameMakerStudio2/Bandori/datafiles_yy/TestSongFormat.txt.yy new file mode 100644 index 0000000..b3241a5 --- /dev/null +++ b/GameMakerStudio2/Bandori/datafiles_yy/TestSongFormat.txt.yy @@ -0,0 +1,19 @@ +{ + "id": "dc814062-491a-4f3d-9968-41c49ec0a64a", + "modelName": "GMIncludedFile", + "mvc": "1.0", + "name": "TestSongFormat.txt", + "CopyToMask": -1, + "exists": false, + "exportAction": 0, + "exportDir": "", + "fileName": "TestSongFormat.txt", + "filePath": "datafiles", + "freeData": false, + "origName": "", + "overwrite": false, + "removeEnd": false, + "size": 0, + "store": false, + "tags": "" +} \ No newline at end of file diff --git a/GameMakerStudio2/Bandori/objects/background_field/Create_0.gml b/GameMakerStudio2/Bandori/objects/background_field/Create_0.gml index 4b5081a..643342f 100644 --- a/GameMakerStudio2/Bandori/objects/background_field/Create_0.gml +++ b/GameMakerStudio2/Bandori/objects/background_field/Create_0.gml @@ -53,4 +53,6 @@ BEATS_PER_SECOND = global.music_bpm/60 TIME_BETWEEN_BEAT = 1/BEATS_PER_SECOND FLICKER_TIME = 0 -FLICKER_OFFSET = 0 //Amount of time in seconds to offset the flicker. Set with END key in EDIT MODE. \ No newline at end of file +FLICKER_OFFSET = 0.5 //Amount of time in seconds to offset the flicker. Set with END key in EDIT MODE. + +LAST_BEAT += FLICKER_OFFSET \ No newline at end of file diff --git a/GameMakerStudio2/Bandori/objects/background_field/Draw_0.gml b/GameMakerStudio2/Bandori/objects/background_field/Draw_0.gml index a207b34..dc10928 100644 --- a/GameMakerStudio2/Bandori/objects/background_field/Draw_0.gml +++ b/GameMakerStudio2/Bandori/objects/background_field/Draw_0.gml @@ -22,6 +22,9 @@ for (i=0;i