Commit graph

66 commits

Author SHA1 Message Date
spykyvenator
04008d76b9 add: multiple menu keybinds 2024-03-01 12:00:26 +01:00
Dominic Szablewski
90702ce171
Merge pull request #103 from LuKP17/draw-internal-rescue
Ship drawn when rescued in internal view
2023-11-18 08:20:39 +01:00
LuKP17
50f4bb6b0b Ship drawn when rescued in internal view 2023-11-11 12:33:50 +01:00
LuKP17
970595c643 Highscores layout fits lower resolutions 2023-11-04 22:30:05 +01:00
Dominic Szablewski
7a36bc06ea
Merge pull request #100 from LuKP17/options-highscores-menu
View highscores in options menu
2023-11-04 20:36:44 +01:00
LuKP17
d22448aa66 Option to lessen internal camera roll 2023-11-04 15:40:50 +01:00
LuKP17
eae0a5cc59 View highscores in options menu 2023-11-01 11:45:37 +01:00
LuKP17
e0c94d473c
Correct pilots logo models drawn in main menu 2023-10-28 19:31:08 +02:00
Dominic Szablewski
58c84c8a3c Fix detection for resuce droid on jump start; close #84 2023-09-24 15:21:06 +02:00
Dominic Szablewski
6451b70356 Fix close to ground physics being frame rate dependent: use proper 30fps frame time 2023-09-24 15:20:04 +02:00
Dominic Szablewski
6431599c40 Fix close to ground physics being frame rate dependent; close #83 2023-09-24 14:05:48 +02:00
Dominic Szablewski
718a348109 Fix ebolt effect on AI not being frame rate dependent 2023-09-24 14:04:29 +02:00
Dominic Szablewski
339f130b94 Fix ebolt thrust effect on player being frame rate dependent 2023-09-24 14:02:32 +02:00
Juan Lopez
83a0992081 reseting the ship exhaust plumes when going back to main menu. 2023-09-08 23:15:20 +02:00
Dominic Szablewski
0594285013 Whitespace: change line endings to LF everywhere 2023-09-04 17:34:29 +02:00
Dominic Szablewski
650572bdd2 Use float abs to calculate bounding radius 2023-09-04 16:53:01 +02:00
Dominic Szablewski
8670d6bb54 Merge branch 'cmake' 2023-09-04 15:50:11 +02:00
Dominic Szablewski
701e2d55e6 Fix 8 byte alignment in temp allocator; close #68 2023-09-04 13:58:43 +02:00
Stephen Gregoratto
9f046ea0a4 Fixes for -Wstrict-prototype 2023-09-04 01:12:08 +10:00
Stephen Gregoratto
2b3fcaaf0b Include 3rd-party libs as system headers
Now, the compiler will only report errors in our code and not in any of
these headers.
2023-09-04 01:12:05 +10:00
Stephen Gregoratto
90b9cffc60 Update sokol headers to fix a build issue on Windows
For some reason, the private method `_sapp_win32_init_console` used
`freopens` instead of `freopen_s`. Instead of fixing that, just upgrade
all the Sokol headers instead.

Also, the GLES2 renderer is no longer available for Emscripten, so bump
it up to GLES3.
2023-09-02 22:40:41 +10:00
Stephen Gregoratto
9207839c80 Fix building on Windows
- Drop linking opengl32/glew32.libs using `#pragma`s in favour of
  specifing the libraries at build time.
- Use check for the `WIN32` macro when including Windows specific
  headers in `src/render_gl.c`.
- Undefine the `min`, `max`, `near`, and `far` macros when building on
  Windows.
2023-09-02 22:40:41 +10:00
Dominic Szablewski
ecf1e63508 Do some culling based on camera direction 2023-09-01 19:04:27 +02:00
BeWorld
aa06570a05 Move SDL_DestroyWindow in main() 2023-09-01 14:10:24 +02:00
BeWorld
07d8a37afd Destroy Window and Renderer 2023-09-01 10:26:56 +02:00
BeWorld
c8bf7c82f7 Add SDL_GameContrllerClose
Fix memory leak
2023-08-31 12:57:31 +02:00
Timothy Riley
61ffe2f410 Rename sokol app window for consistency 2023-08-31 00:07:49 -04:00
Dominic Szablewski
98bd55a342 WASM: add touch controls 2023-08-30 17:40:50 +02:00
Dominic Szablewski
a84982b31e Shutdown sokol audio on exit 2023-08-30 17:24:26 +02:00
Dominic Szablewski
a3b156ef30 Properly free sdl paths on exit 2023-08-30 17:23:59 +02:00
Dominic Szablewski
2c5c3d3f13 Use US spelling of "color" everywhere 2023-08-30 12:38:34 +02:00
Dominic Szablewski
69122122f0 Remove unused color union fields 2023-08-30 12:34:52 +02:00
Dominic Szablewski
530fb40fb7 Remove obsolete TRACK_*_MAX defines and struct fields 2023-08-30 12:25:17 +02:00
Dominic Szablewski
2430297998 Make track vertex color loading endian agnostic; see #56 2023-08-30 12:21:10 +02:00
Dominic Szablewski
4b1fa81f30 Make image loading a bit faster by doing the color conversion for each palette entry just once 2023-08-28 18:09:34 +02:00
Dominic Szablewski
97a1073946 Fix TIM palette loading; see #56 2023-08-28 18:02:03 +02:00
Dominic Szablewski
4c76aadf80 Fix audio on big endian machines; see #56 2023-08-28 17:22:48 +02:00
Dominic Szablewski
108cfac9dc Use Use appropriate platform-specific paths for assets and userdata; close #10, #53, #47
This commit also allows overriding these path at build time through
-DPATH_ASSETS=.. and -DPATH_USERDATA=..
2023-08-28 16:39:51 +02:00
Dominic Szablewski
18ebcc7457 Make loading palette colors in TIM images endian agnostic; see #56 2023-08-28 14:29:39 +02:00
Dominic Szablewski
209c1fd627 Add ALT+Enter hotkey to toggle fullscreen; close #45 2023-08-27 12:52:58 +02:00
Dominic Szablewski
da4d3b5c0c Prevent int overflow when projecting target reticle on screen; close #48 2023-08-26 17:49:42 +02:00
Juan Lopez
6170976e6a Avoid rendering more than once those track sections in tracks with alternative paths. 2023-08-23 23:08:23 +02:00
Juan Lopez
6fcd669733 Added support build on Windows under the MSYS2 enviroment. 2023-08-21 22:14:59 +02:00
Dominic Szablewski
5e0cd76948 Initialize joysticks and support loading gamecontrollerdb.txt; see #26 2023-08-21 13:07:39 +02:00
Dominic Szablewski
4c1e50939e Add mapping game controller guide button; see #26 2023-08-19 23:40:02 +02:00
Dominic Szablewski
a721eec118 Fix championship rank calculation 2023-08-19 21:30:15 +02:00
Dominic Szablewski
59ebb89ed2 Blink current menu item 30x per second; see #31 2023-08-18 19:09:28 +02:00
Dominic Szablewski
dae45b786a Show correct team logo in team selection menu; close #32 2023-08-18 18:46:34 +02:00
Dominic Szablewski
7760f83ce1 Add software rendering backend as a demo 2023-08-16 22:55:04 +02:00
Dominic Szablewski
b2e3ae80dd Add button bindings to save data, add controls menu; close #6 2023-08-15 23:42:51 +02:00