mirror of
https://github.com/dwsJason/xrick2gs.git
synced 2024-09-17 09:54:35 +00:00
Cheats for starting at another level
This commit is contained in:
parent
8acb81b91a
commit
d3656d2d87
@ -17,6 +17,12 @@ segment "screen";
|
||||
|
||||
extern char joys_lz4;
|
||||
|
||||
#define KEY_0 0x1D
|
||||
#define KEY_1 0x12
|
||||
#define KEY_2 0x13
|
||||
#define KEY_3 0x14
|
||||
#define KEY_4 0x15
|
||||
|
||||
#define J_KEY 0x26
|
||||
#define K_KEY 0x28
|
||||
|
||||
@ -65,6 +71,23 @@ screen_joykey(void)
|
||||
bChosen = 1;
|
||||
}
|
||||
|
||||
if (KeyArray[ KEY_0 ])
|
||||
{
|
||||
sysarg_args_map = 0;
|
||||
}
|
||||
if (KeyArray[ KEY_1 ])
|
||||
{
|
||||
sysarg_args_map = 1;
|
||||
}
|
||||
if (KeyArray[ KEY_2 ])
|
||||
{
|
||||
sysarg_args_map = 2;
|
||||
}
|
||||
if (KeyArray[ KEY_3 ])
|
||||
{
|
||||
sysarg_args_map = 3;
|
||||
}
|
||||
|
||||
if (bChosen) { /* we're done */
|
||||
sysvid_clear();
|
||||
sysvid_setGamePalette();
|
||||
|
Loading…
Reference in New Issue
Block a user