Commit graph

938 commits

Author SHA1 Message Date
Sebastian Krzyszkowiak
79bcc96d9b
config: Use localStorage on Emscripten 2020-03-13 03:21:26 +01:00
Sebastian Krzyszkowiak
58f97730db
config: Add DeleteConfigOption function 2020-03-13 03:21:10 +01:00
Sebastian Krzyszkowiak
e57db1d127
Update 3rdparty submodules 2020-03-09 04:07:47 +01:00
Sebastian Krzyszkowiak
d753279764
emscripten-pre-js: remove autoplay workaround
It didn't work with recent emscripten versions anyway. A better fix
is coming to emscripten's SDL port.
2020-03-02 03:23:01 +01:00
Sebastian Krzyszkowiak
4fe091d93c
particle: explicitly cast RAND_MAX to float
This silences a warning in clang-11
2020-03-01 23:45:42 +01:00
Sebastian Krzyszkowiak
b592a3382f
character: use calloc instead of malloc 2020-01-16 03:02:44 +01:00
Sebastian Krzyszkowiak
11c49a786d
character: fix unset scale when using RegisterSpritesheetFromBitmap 2020-01-16 03:01:58 +01:00
Sebastian Krzyszkowiak
cddb35dd95
emscripten: enable GNU extensions
They're needed for some features like EM_ASM
2019-12-10 03:21:22 +01:00
Sebastian Krzyszkowiak
2adbb131e6
emscripten-audio-stream: resume stream from correct position after pausing 2019-12-09 02:50:59 +01:00
Sebastian Krzyszkowiak
4a0e7a77cc
emscripten: enable -Oz size optimization in release modes 2019-12-09 02:03:06 +01:00
Sebastian Krzyszkowiak
7d816e28ef
emscripten: fix fullscreen with fixed_size param 2019-12-09 02:02:50 +01:00
Sebastian Krzyszkowiak
34bcf97375
params: add fixed_size property 2019-12-08 09:24:38 +01:00
Sebastian Krzyszkowiak
1d8fb9f2f3
move showconsole variable to public struct 2019-12-08 09:23:56 +01:00
Sebastian Krzyszkowiak
9ce1957968
cmake: emscripten: add "--use-preload-cache --lz4" to compiler params 2019-12-07 03:13:09 +01:00
Sebastian Krzyszkowiak
e6888ab049
gamestates: create/destroy framebuffers on start/stop
Games with lots of gamestates suffered due to lots of empty framebuffers
being allocated, making window resize awfully slow and pointlessly eating
plenty of RAM.
2019-12-05 09:27:06 +01:00
Sebastian Krzyszkowiak
3dd72ec389
gamestate: fix incorrect guard condition in PauseAllGamestates 2019-12-03 03:35:44 +01:00
Sebastian Krzyszkowiak
c74fbc2be8
character: store image scale as spritesheet property
This allows streamed spritesheets to not be mistakenly rescaled.
2019-11-18 12:56:46 +01:00
Sebastian Krzyszkowiak
5981486764
mainloop: cosmetic change to silence clang-tidy 2019-11-18 12:46:57 +01:00
Sebastian Krzyszkowiak
9ec64c46b3
character: introduce streamed spritesheets
Streamed spritesheets can be generated on-the-go and don't need to be
loaded from any file (or loading can be handled manually). Streamed
spritesheet can also be "preloaded", that is - converted to regular
spritesheet by preemptively reading the stream and storing the results.
2019-11-18 12:04:23 +01:00
Sebastian Krzyszkowiak
332c668717
character: don't call character callback indefinitely after animation finishes
This could happen when the repeats counter went down to 0 with
no successor - the callback would then be called every frame.
2019-11-18 09:47:13 +01:00
Sebastian Krzyszkowiak
08a3c24c56
mainloop: call al_convert_memory_bitmaps after gamestate loading
This handles a case where "progress" function hasn't been called
by the gamestate at all.
2019-11-18 09:41:43 +01:00
Sebastian Krzyszkowiak
e9d645ecee
test: fix compiler warnings about missing return value checks 2019-11-12 01:25:49 +01:00
Sebastian Krzyszkowiak
0062dbac3b
defines.h: define LIBSUPERDERPY_GAME_VERSION 2019-11-11 23:36:55 +01:00
Sebastian Krzyszkowiak
a0dabfdeec
cmake: unix: install man page if it exists 2019-11-11 22:42:04 +01:00
Sebastian Krzyszkowiak
3c0f104add
TestDataFilePath: handle /usr/share/games/ data path
This makes it work with proper Debian packages.
2019-11-11 21:24:43 +01:00
Sebastian Krzyszkowiak
5c9ebfdbdd
cmake: make bin, lib and share directories configurable 2019-11-11 21:23:43 +01:00
Sebastian Krzyszkowiak
ae2c483111
Update embedded allegro copy 2019-11-11 21:23:03 +01:00
Sebastian Krzyszkowiak
63d1ae8bf7
init: add --fullscreen and --windowed command line options 2019-10-17 03:51:11 +02:00
Sebastian Krzyszkowiak
1ff0d6ddac
emscripten: compensate canvas size for device pixel ratio 2019-10-17 03:50:48 +02:00
Sebastian Krzyszkowiak
a112e5de0d
cmake: set BINARYEN_TRAP_MODE=clamp for wasm
It's necessary to avoid random breakage due to llvm optimizations.
2019-10-07 00:01:18 +02:00
Sebastian Krzyszkowiak
11267cd3b1
character: fix stopping of non-repeating reversed spritesheets 2019-10-06 08:06:53 +02:00
Sebastian Krzyszkowiak
1d6dc5e0d0
test: add tests for characters 2019-10-06 08:06:52 +02:00
Sebastian Krzyszkowiak
b8d44792f1
cmake: support memory sanitizer 2019-10-06 08:06:40 +02:00
Sebastian Krzyszkowiak
356cb6c2e8
cmake: specify LIBSUPERDERPY_EMBEDDED_ALLEGRO as an option 2019-10-06 08:01:08 +02:00
Sebastian Krzyszkowiak
861850aafb
cmake: set _POSIX_C_SOURCE instead of _XOPEN_SOURCE
On Maemo we set _GNU_SOURCE instead because of its old glibc.
2019-10-06 08:00:32 +02:00
Sebastian Krzyszkowiak
7cca01b4b8
utils: improve docs and const correctness 2019-10-01 23:05:30 +02:00
Sebastian Krzyszkowiak
f7c9088695
Console_Load: allow to run without external font assets available 2019-10-01 23:04:32 +02:00
Sebastian Krzyszkowiak
036cc00332
cmake: install the app icon into /usr/share/pixmaps as well 2019-09-07 18:11:56 +02:00
Sebastian Krzyszkowiak
521ea828f8
cmake: fix embedded allegro getting built as a shared lib 2019-09-07 03:55:34 +02:00
Sebastian Krzyszkowiak
d9b0892637
Update allegro5 submodule 2019-09-07 03:01:53 +02:00
Sebastian Krzyszkowiak
aa1c864811
cmake: add ability to build an embedded, static copy of Allegro 2019-09-07 01:13:52 +02:00
Sebastian Krzyszkowiak
09c8506b37
ToggleFullscreen: log whether fullscreen is being toggled on or off 2019-09-06 22:57:04 +02:00
Sebastian Krzyszkowiak
3a0b8a706a
timeline: add TM_END and TM_REPEAT boolean aliases 2019-08-28 20:38:31 +02:00
Sebastian Krzyszkowiak
29e38ac04c
character: add detailedProgress property for progress report on each frame 2019-08-28 04:18:20 +02:00
Sebastian Krzyszkowiak
02650dfb4f
character: rename CharacterCallback macro to CHARACTER_CALLBACK 2019-08-28 04:17:57 +02:00
Sebastian Krzyszkowiak
b5b938ef28
init: list connected joystick data in debug output 2019-07-25 03:26:08 +02:00
Sebastian Krzyszkowiak
943c4fb77b
support gamepad hotplug 2019-07-23 03:57:23 +02:00
Sebastian Krzyszkowiak
4cc19c3382
README: add Bob 2019-07-22 23:49:45 +02:00
Sebastian Krzyszkowiak
1807fe256e
limit delta to 1 second
It doesn't make much sense to react to bugger deltas; especially that
looping over Gamestate_Tick may take significant amount of time in such
cases.
2019-07-22 17:51:57 +02:00
Sebastian Krzyszkowiak
5ca9d844b8
mainloop: correct for joystick quirks on GNU/Linux and Nintendo Switch 2019-07-22 17:44:07 +02:00