eastern-flames/eastern flames/scripts/song/song.gml

20 lines
662 B
Plaintext
Raw Normal View History

2022-08-23 09:54:52 +00:00
#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 {
2022-08-07 21:14:04 +00:00
name = name_;
audio = audio_;
bpm = bpm_;
description = description_;
maps = maps_;
self.loopStart = loopstart;
self.loopEnd = loopend;
variable_struct_set(global.tracklist, shortname, self);
2022-08-23 09:54:52 +00:00
}
nu song("menu", "menu", [m_menu]);
nu song("map", "map", [m_map]);
nu song("cutscene", "cutscene", [m_cutscene]);