Added test level feature

This commit is contained in:
Reonu
2021-07-25 14:01:49 +01:00
parent 5b61fed5c9
commit 75b0d960be
3 changed files with 20 additions and 5 deletions

View File

@@ -7,11 +7,19 @@
#include "make_const_nonconst.h"
#include "config.h"
extern const LevelScript level_main_scripts_entry[];
const LevelScript level_script_entry[] = {
INIT_LEVEL(),
SLEEP(/*frames*/ 2),
BLACKOUT(/*active*/ FALSE),
SET_REG(/*value*/ 0),
#ifdef TEST_LEVEL
SET_REG(TEST_LEVEL),
EXECUTE(/*seg*/ 0x15, _scriptsSegmentRomStart, _scriptsSegmentRomEnd, level_main_scripts_entry),
#else
SET_REG(0),
EXECUTE(/*seg*/ 0x14, /*script*/ _introSegmentRomStart, /*scriptEnd*/ _introSegmentRomEnd, /*entry*/ level_intro_splash_screen),
#endif
JUMP(/*target*/ level_script_entry),
};
};