fragglet / sdl-sopwith

Classic bi-plane shoot-'em up
https://fragglet.github.io/sdl-sopwith
GNU General Public License v2.0
66 stars 13 forks source link

Quit game when window is closed #13

Closed wjt closed 1 year ago

wjt commented 1 year ago

Fixes #5

wjt commented 1 year ago

I have never written a line of code using SDL before today, so I could be getting this totally wrong. The abrupt exit(0) mirrors the handling of Q on the menu screen.

fragglet commented 1 year ago

Looks good, thanks!