mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-22 03:22:48 -05:00
pacbox: fix red and enable AI on all targets
Change-Id: I4275e4ec374f3b5a6839890e4a2aa0f577f56522
This commit is contained in:
parent
b3295f0ed6
commit
8bafa1bc9b
2 changed files with 5 additions and 1 deletions
|
|
@ -39,6 +39,9 @@
|
||||||
/*Allows split screen jump and makes pacman invincible if you start at 18 credits (for testing purposes)*/
|
/*Allows split screen jump and makes pacman invincible if you start at 18 credits (for testing purposes)*/
|
||||||
//#define CHEATS 1
|
//#define CHEATS 1
|
||||||
|
|
||||||
|
/* Enable AI on all targets */
|
||||||
|
#define AI 1
|
||||||
|
|
||||||
struct pacman_settings {
|
struct pacman_settings {
|
||||||
int difficulty;
|
int difficulty;
|
||||||
int numlives;
|
int numlives;
|
||||||
|
|
@ -632,7 +635,9 @@ static int gameProc( void )
|
||||||
long end_time;
|
long end_time;
|
||||||
int frame_counter = 0;
|
int frame_counter = 0;
|
||||||
int yield_counter = 0;
|
int yield_counter = 0;
|
||||||
|
#ifdef AI
|
||||||
unsigned char turn = 250;
|
unsigned char turn = 250;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (settings.sound)
|
if (settings.sound)
|
||||||
start_sound();
|
start_sound();
|
||||||
|
|
|
||||||
|
|
@ -286,7 +286,6 @@
|
||||||
#define PACMAN_COIN BUTTON_PLAYPAUSE
|
#define PACMAN_COIN BUTTON_PLAYPAUSE
|
||||||
#define PACMAN_MENU BUTTON_POWER
|
#define PACMAN_MENU BUTTON_POWER
|
||||||
#define SKIP_LEVEL BUTTON_VOL_DOWN
|
#define SKIP_LEVEL BUTTON_VOL_DOWN
|
||||||
#define AI 1
|
|
||||||
|
|
||||||
#elif CONFIG_KEYPAD == SANSA_CONNECT_PAD
|
#elif CONFIG_KEYPAD == SANSA_CONNECT_PAD
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue