diff options
| author | esquizo <esquizo+noreply@esquizo.net> | 2026-06-03 16:24:17 -0300 |
|---|---|---|
| committer | esquizo <esquizo+noreply@esquizo.net> | 2026-06-03 16:24:17 -0300 |
| commit | 022b9bd5f910629ecbf837b38b3cd761c2f703ea (patch) | |
| tree | 355e052b74f61cd89a0a851c5b2734b80719da91 /sdl3_main.c | |
| parent | 83b1c06b186614d1bf2171feb46754bd8a8e6dfa (diff) | |
game: pressione r para reiniciar
Diffstat (limited to 'sdl3_main.c')
| -rw-r--r-- | sdl3_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sdl3_main.c b/sdl3_main.c index 7d29a97..9780e3d 100644 --- a/sdl3_main.c +++ b/sdl3_main.c @@ -144,6 +144,9 @@ process_events() case SDL_EVENT_KEY_UP: case SDL_EVENT_KEY_DOWN: + if(event.key.scancode == SDL_SCANCODE_R && player->alive == false) + entrestart(); + #define DEFINE_KEY(X, VAR) \ if(event.key.scancode == X) VAR = event.type == SDL_EVENT_KEY_DOWN |
