-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from SonolusHaniwa/develop
Preview mode
- Loading branch information
Showing
33 changed files
with
695 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
class FlickNote : public Archetype { | ||
public: | ||
|
||
static constexpr const char* name = "Sirius Flick Note"; | ||
|
||
defineEntityData(beat); | ||
defineEntityData(lane); | ||
defineEntityData(laneLength); | ||
Variable<EntitySharedMemoryId> enLane; | ||
|
||
SonolusApi preprocess() { | ||
FUNCBEGIN | ||
duration = Max(duration.get(), beat); | ||
noteCount = noteCount + 1; | ||
noteId = noteCount.get(); | ||
enLane = lane + laneLength - 1; | ||
return VOID; | ||
} | ||
|
||
SonolusApi render() { | ||
FUNCBEGIN | ||
IF (noteId % noteCountDistance == 0) { drawNoteCount(beat, noteId); } FI; | ||
drawPreviewNormalNote(Sprites.ScratchNote, beat, lane, enLane); | ||
drawPreviewArrow(beat, lane, enLane); | ||
return VOID; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
class Initialization: public Archetype { | ||
public: | ||
|
||
static constexpr const char* name = "Sirius Initialization"; | ||
|
||
SonolusApi preprocess() { | ||
FUNCBEGIN | ||
duration = 0; noteCount = 0; | ||
|
||
let menuWidth = 0.15 * ui.menuConfiguration.scale; | ||
let menuHeight = 0.15 * ui.menuConfiguration.scale; | ||
let menuX = screen.r - interfaceGap; | ||
let menuY = screen.t - interfaceGap; | ||
ui.menu.set(menuX, menuY, 1, 1, menuWidth, menuHeight, 0, ui.menuConfiguration.alpha, true); | ||
|
||
let progressWidth = screen.w - interfaceGap * 2; | ||
let progressHeight = 0.15 * ui.progressConfiguration.scale; | ||
let progressX = screen.l + interfaceGap; | ||
let progressY = screen.b + interfaceGap; | ||
ui.progress.set(progressX, progressY, 0, 0, progressWidth, progressHeight, 0, ui.progressConfiguration.alpha, true); | ||
return VOID; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
class SplitLine: public Archetype { | ||
public: | ||
|
||
static constexpr const char* name = "Sirius Split Line"; | ||
|
||
defineEntityData(beat); | ||
defineEntityData(endBeat); | ||
defineEntityData(split); | ||
defineEntityData(color); | ||
|
||
SonolusApi preprocess() { | ||
FUNCBEGIN | ||
duration = Max(duration.get(), beat); | ||
return VOID; | ||
} | ||
|
||
SonolusApi render() { | ||
FUNCBEGIN | ||
getSplitLine(color); | ||
drawPreviewSplitLine(beat - splitLineAnimationStart, beat, 1, split); | ||
drawPreviewSplitLine(beat, endBeat, 0, split); | ||
drawPreviewSplitLine(endBeat, endBeat + splitLineAnimationEnd, 2, split); | ||
return VOID; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
class Stage: public Archetype { | ||
public: | ||
|
||
static constexpr const char* name = "Sirius Stage"; | ||
bool input = false; | ||
|
||
int preprocessOrder = 1; | ||
SonolusApi preprocess() { | ||
FUNCBEGIN | ||
canvas.set(Scroll.LeftToRight, Ceil(duration.get() / stageTimeLength) * stageFullWidth); | ||
return VOID; | ||
} | ||
|
||
SonolusApi render() { | ||
FUNCBEGIN | ||
FOR (i, 0, Ceil(duration / stageTimeLength), 1) { drawStage(i); } DONE | ||
FOR (i, 0, duration + 1, 1) { drawTime(i); } DONE | ||
return VOID; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class SyncLine: public Archetype { | ||
public: | ||
|
||
static constexpr const char* name = "Sirius Sync Line"; | ||
|
||
defineEntityData(beat); | ||
defineEntityData(left); | ||
defineEntityData(right); | ||
|
||
SonolusApi render() { | ||
FUNCBEGIN | ||
drawPreviewSyncLine(beat, left, right); | ||
return VOID; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class SiriusCriticalHoldStart: public FlatNote { | ||
public: | ||
static constexpr const char* name = "Sirius Critical Hold Start"; | ||
|
||
let getSprite() { return Sprites.CriticalNote; } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class CriticalNote: public FlatNote { | ||
public: | ||
static constexpr const char* name = "Sirius Critical Note"; | ||
|
||
let getSprite() { return Sprites.CriticalNote; } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class SiriusCriticalScratchHoldStart: public FlatNote { | ||
public: | ||
static constexpr const char* name = "Sirius Critical Scratch Hold Start"; | ||
|
||
let getSprite() { return Sprites.CriticalNote; } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
class FlatNote: public Archetype { | ||
public: | ||
|
||
defineEntityData(beat); | ||
defineEntityData(lane); | ||
defineEntityData(laneLength); | ||
Variable<EntitySharedMemoryId> enLane; | ||
virtual let getSprite() { return -1; } | ||
|
||
SonolusApi preprocess() { | ||
FUNCBEGIN | ||
duration = Max(duration.get(), beat); | ||
noteCount = noteCount + 1; | ||
noteId = noteCount.get(); | ||
enLane = lane + laneLength - 1; | ||
return VOID; | ||
} | ||
|
||
SonolusApi render() { | ||
FUNCBEGIN | ||
IF (noteId % noteCountDistance == 0) { drawNoteCount(beat, noteId); } FI; | ||
drawPreviewNormalNote(getSprite(), beat, lane, enLane); | ||
return VOID; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class SiriusHoldStart: public FlatNote { | ||
public: | ||
static constexpr const char* name = "Sirius Hold Start"; | ||
|
||
let getSprite() { return Sprites.HoldNote; } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class NormalNote: public FlatNote { | ||
public: | ||
static constexpr const char* name = "Sirius Normal Note"; | ||
|
||
let getSprite() { return Sprites.NormalNote; } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class SiriusScratchHoldStart: public FlatNote { | ||
public: | ||
static constexpr const char* name = "Sirius Scratch Hold Start"; | ||
|
||
let getSprite() { return Sprites.ScratchNote; } | ||
}; |
Oops, something went wrong.