tfv: enable keyboard auto-repeat in SDL

This commit is contained in:
Vince Weaver 2017-07-13 16:04:34 -04:00
parent a3d5057560
commit 9e89f7fa9d
2 changed files with 8 additions and 2 deletions

View File

@ -377,6 +377,8 @@ int grsim_init(void) {
return -1;
}
SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
/* Init screen */
for(x=0x400;x<0x800;x++) ram[x]=0;

View File

@ -407,6 +407,7 @@ static void show_map(void) {
* * EXPERIENCE: 0 *
* * NEXT LEVEL: 16 *
* * *
* * MONEY: $1 *
* * TIME: 0:00 *
******************************************
Inc level at 4, so 64 levels
@ -571,12 +572,15 @@ static int do_battle(void) {
1 BEACH LANDING GR/\ASS FORREST
2 BEACH GRASS GR/\ASS FORREST
2 BEACH GRASS COLLEGE FORREST
3 BEACH BEACH COLLEGE BEACH
3 BEACH BEACH BEACH BEACH
*/
/* Walk through bushes, beach water */
/* Make landing a sprite? Stand behind things? */
static int world_map(void) {
int ch;