--- a/src/game.cpp +++ b/src/game.cpp @@ -131,7 +131,7 @@ { "sounds/pickup.wav", "sounds/shoot_cg1_modified.wav",//<- Hero shoot sound - "sounds/exit.ogg",//<-dj2016-10-28 New proper exit sound (is "PowerUp13.mp3" by Eric Matyas http://soundimage.org/) + "sounds/exit.wav",//<- exit sound generated for the FredyGames web build (the original exit.ogg is by Eric Matyas) "sounds/wooeep.wav", "sounds/explode.wav", "sounds/sfx_weapon_singleshot7.wav"//<- Monster shoot sound --- a/src/keys.cpp +++ b/src/keys.cpp @@ -35,8 +35,8 @@ SDLK_UP, SDLK_LEFT, SDLK_RIGHT, - SDLK_RCTRL,//Note LCTRL and RCTRL are both 'mapped onto' just RCTRL currently [dj2016-10] - SDLK_RALT//Note LALT and RALT are both 'mapped onto' just RALT currently [dj2016-10] + SDLK_z,//Web build: Jump (the desktop default, Ctrl, is taken by browser and system shortcuts) + SDLK_x//Web build: Shoot (the desktop default is Alt) }; // Note here keycode is the SDL one, not the 'DJ' one [dj2016-10] --- a/src/sdl/djinput.cpp +++ b/src/sdl/djinput.cpp @@ -343,6 +343,8 @@ void djiPoll() { + // Web build: loops that poll without waiting (djiWaitForKeyUp, the editor) must give the browser a turn + SDL_Delay(1); djiPollBegin(); // Update input