This commit is contained in:
the me 2022-08-23 02:54:52 -07:00
parent 62f4ba5f5f
commit 54f1b7c75d
15 changed files with 186 additions and 4 deletions

View file

@ -1,4 +1,10 @@
function song(name_="among us trap remix", shortname="autr", audio_=[m_null], bpm_=100, description_="when the im.ogg", maps_=[sm_null], loopstart=0,loopend=audio_sound_length(audio_[0])) constructor {
#macro mus global.tracklist
global.tracklist = {};
global.playingmusic = new song();
global.playingmusicdata = 0;
global.playingmusictime = 0;
function song(name_="among us trap remix", shortname="autr", audio_=[m_null], bpm_=100, description_="when the im.ogg", maps_=[c_null], loopstart=0,loopend=audio_sound_length(audio_[0])) constructor {
name = name_;
audio = audio_;
bpm = bpm_;
@ -7,4 +13,8 @@ function song(name_="among us trap remix", shortname="autr", audio_=[m_null], bp
self.loopStart = loopstart;
self.loopEnd = loopend;
variable_struct_set(global.tracklist, shortname, self);
}
}
nu song("menu", "menu", [m_menu]);
nu song("map", "map", [m_map]);
nu song("cutscene", "cutscene", [m_cutscene]);

View file

@ -1,5 +1,6 @@
function txt_intro() {
ARTICULATOR.state = c_null;
music_set(mus.cutscene);
msg = msglang([
txt("Checkmate!", MOMIJI.SMUG, SPRITEPOS.LEFT, s_black),
@ -37,5 +38,8 @@ function txt_intro() {
])
endevent = function() {ARTICULATOR.state = st_control};
endevent = function() {
ARTICULATOR.state = st_control;
music_set(mus.map);
};
}

View file

@ -1,5 +1,6 @@
function txt_win() {
ARTICULATOR.state = c_null;
music_set(mus.cutscene);
msg = msglang([
txt("Ow...", REISEN.WOBBLE, SPRITEPOS.RIGHT, s_black),