SDL_Init
BeWorld2018 opened this issue · comments
BeWorld commented
hi
SDL_Init no need to initialize everything
SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO | SDL_INIT_GAMECONTROLLER);
And maybe you can implement SDL_JoystickRumble with fire and ennemy contact for more sensation :-)
example :
/* First button triggers a 0.5 second full strength rumble */
if (event.jbutton.button == 0) {
SDL_GameControllerRumble(joystick, 0xFFFF, 0xFFFF, 500);
}
Thanks
BeWorld commented
Somes others ideas
- Option to unlock mouse (maybe disable mouse controler when unlock), in window mode, we can go out unless quit game.
- SDL_CreateWindow : add Resizable functionnaly, and add WINDOWPOS_CENTERED (maybe)
- SDL_CreateRenderer : add test if failed to create first, create SDL_RENDERER_SOFTWARE in second test
- Create Option with RENDER SCALE quality : SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "nearest"); ( linear, best)
thanks