week 7 stuff + video cutscenes

This commit is contained in:
Yoshman29
2022-11-06 02:32:35 +01:00
parent b9aafdc3e9
commit 75f7bb378b
42 changed files with 704 additions and 51 deletions
+2 -2
View File
@@ -84,7 +84,7 @@ class Conductor
@:dox(hide) public function new() {}
public static function reset() {
songPosition = lastSongPos = 0;
songPosition = lastSongPos = curBeatFloat = curStepFloat = curBeat = curStep = 0;
bpmChangeMap = [];
changeBPM(0);
}
@@ -135,7 +135,7 @@ class Conductor
if (FlxG.state != null && FlxG.state is MusicBeatState && cast(FlxG.state, MusicBeatState).cancelConductorUpdate) return;
if (lastSongPos != (lastSongPos = FlxG.sound.music.time)) {
// update conductor
songPosition = FlxG.sound.music.time;
songPosition = lastSongPos;
} else {
songPosition += elapsed * 1000;
}
+4
View File
@@ -34,6 +34,10 @@ class Paths
return getPreloadPath(file);
}
static public function video(key:String) {
return getPath('videos/$key.mp4', BINARY, null);
}
static public function getLibraryPath(file:String, library = "preload")
{
return if (library == "preload" || library == "default") getPreloadPath(file); else getLibraryPathForce(file, library);