Sebastian Krzyszkowiak
|
dba2ef80da
|
add correct file extension for wasm gamestates
|
2018-07-06 23:17:09 +02:00 |
|
Sebastian Krzyszkowiak
|
ce76a53939
|
fix compilation on emscripten
|
2018-07-06 03:55:32 +02:00 |
|
Sebastian Krzyszkowiak
|
ab17bd8050
|
timeline: add TM_AddActionAfter
|
2018-07-05 22:31:18 +02:00 |
|
Sebastian Krzyszkowiak
|
c4ceb188f5
|
gamestate: move loading time counter to main thread to include PostLoad
|
2018-07-05 20:59:54 +02:00 |
|
Sebastian Krzyszkowiak
|
521e6bf431
|
gamestate: add optional PostLoad hook for stuff that needs to be done on GPU thread
|
2018-07-05 20:55:32 +02:00 |
|
Sebastian Krzyszkowiak
|
a314ad2d6d
|
don't reload shaders multiple times when loading multiple gamestates
|
2018-07-05 20:47:30 +02:00 |
|
Sebastian Krzyszkowiak
|
e293047aba
|
gamestate: make some API endpoints optional
|
2018-07-05 20:42:51 +02:00 |
|
Sebastian Krzyszkowiak
|
125ff97fba
|
loading: show loading time and warn if ProgressCount isn't right
|
2018-07-05 19:39:11 +02:00 |
|
Sebastian Krzyszkowiak
|
49628de381
|
LoadSpritesheets: call progress function after each spritesheet
|
2018-07-05 19:38:31 +02:00 |
|
Sebastian Krzyszkowiak
|
ab8dc0f143
|
character: fix predecessor memory leak
|
2018-07-05 16:57:03 +02:00 |
|
Sebastian Krzyszkowiak
|
ce965a2643
|
character: add ability to set character destructor to free custom data
|
2018-07-05 16:43:13 +02:00 |
|
Sebastian Krzyszkowiak
|
96ab7a12ce
|
use ALLEGRO_FRAMELESS for fullscreen windows only on Android
It will be needed for immersive mode, while it can break
fullscreen toggling on other platforms.
|
2018-07-05 03:28:32 +02:00 |
|
Sebastian Krzyszkowiak
|
2d905ce3c0
|
update the timestamp after Gamestate_Start to prevent high delta jump
|
2018-07-05 02:33:59 +02:00 |
|
Sebastian Krzyszkowiak
|
d512b31889
|
shader: downgrade GLSL to 1.20 because of macOS
|
2018-07-05 02:32:58 +02:00 |
|
Sebastian Krzyszkowiak
|
3a04729fb6
|
shader: automatically prepend #version line
GL: "#version 130" (3.0)
GLES: "#version 100" (2.0)
|
2018-07-05 01:05:50 +02:00 |
|
Sebastian Krzyszkowiak
|
5888cd2575
|
FatalError, PrintConsole: properly mark format argument as such
Thanks to that static analysis can catch nonliteral format errors.
|
2018-07-05 01:04:54 +02:00 |
|
Sebastian Krzyszkowiak
|
dcf1375e6f
|
LoadSpritesheets: decrease the verboseness of logs in non-debug mode
|
2018-07-05 01:03:45 +02:00 |
|
Sebastian Krzyszkowiak
|
a29c7b4d2c
|
fix clang-tidy issues
|
2018-07-04 19:08:39 +02:00 |
|
Sebastian Krzyszkowiak
|
4d5fdcffbb
|
character: add more logging on spritesheet loading
|
2018-07-04 06:55:48 +02:00 |
|
Sebastian Krzyszkowiak
|
88ea60dd7b
|
add missing symbol exports for ShowCharacter and HideCharacter
Fixes MinGW
|
2018-07-04 06:55:12 +02:00 |
|
Sebastian Krzyszkowiak
|
c2f6aa73cd
|
utils: add Sign function
|
2018-07-03 04:22:30 +02:00 |
|
Sebastian Krzyszkowiak
|
7b93ced844
|
it's libsuperderpy 2 now
|
2018-07-03 04:22:12 +02:00 |
|
Sebastian Krzyszkowiak
|
23ffcae034
|
better handling of joystick, mouse and font initialization failures
Now libsuperderpy works on FreeBSD \o/
|
2018-07-03 00:41:57 +02:00 |
|
Sebastian Krzyszkowiak
|
4b4e6cc023
|
timeline: capitalise TM_ACTION macro to prevent confusion with function declaration
|
2018-06-30 16:37:43 +02:00 |
|
Sebastian Krzyszkowiak
|
c7fac39b79
|
timeline: use macros to get action name by default
|
2018-06-30 02:52:06 +02:00 |
|
Sebastian Krzyszkowiak
|
d5faec85ac
|
mark loading.inProgress variable as volatile to prevent optimization bugs in threaded loading
|
2018-06-30 02:35:32 +02:00 |
|
Sebastian Krzyszkowiak
|
93859232d9
|
Fix GCC warnings
|
2018-06-30 01:50:29 +02:00 |
|
Sebastian Krzyszkowiak
|
4cf74ec0f3
|
timeline: delta eating
Untested. Great reason to write unit tests :)
|
2018-06-30 01:27:28 +02:00 |
|
Sebastian Krzyszkowiak
|
993a6fd2e7
|
Add more PrintConsoles around gamestate handling.
|
2018-06-30 00:59:54 +02:00 |
|
Sebastian Krzyszkowiak
|
40bda569b9
|
timeline: rework API to better handle common use cases
|
2018-06-30 00:50:55 +02:00 |
|
Sebastian Krzyszkowiak
|
b9774052eb
|
timeline: add TM_RunningOnly convienence macro
|
2018-06-29 23:00:58 +02:00 |
|
Sebastian Krzyszkowiak
|
a4a1c356df
|
timeline: don't use ALLEGRO_TIMERs anymore, rely on delta time instead
|
2018-06-29 23:00:13 +02:00 |
|
Sebastian Krzyszkowiak
|
b5d2b4a032
|
fix timeline debug mode
|
2018-06-28 04:38:33 +02:00 |
|
Sebastian Krzyszkowiak
|
ce131e50a0
|
character: fix switched names in CharacterCallback macro
|
2018-06-28 04:25:56 +02:00 |
|
Sebastian Krzyszkowiak
|
40df27640c
|
character: add CharacterCallback macro for defininig animation callbacks
|
2018-06-27 19:30:35 +02:00 |
|
Sebastian Krzyszkowiak
|
12faed0921
|
timeline: add TM_Action macro for defining action callbacks
|
2018-06-27 19:30:18 +02:00 |
|
Sebastian Krzyszkowiak
|
1c66f219d8
|
timeline: expose the delta value to actions
|
2018-06-27 19:00:48 +02:00 |
|
Sebastian Krzyszkowiak
|
016c482154
|
convert bitmaps to video textures on every progress() when loading gamestate in threaded mode
|
2018-06-23 04:44:36 +02:00 |
|
Sebastian Krzyszkowiak
|
81488f9390
|
character: rework IsOnCharacter to work properly regardless of pivot, rotation and scale
|
2018-06-04 19:10:29 +02:00 |
|
Sebastian Krzyszkowiak
|
291e4c73d6
|
use al_reset_clipping_rectangle for clarity
|
2018-06-03 03:39:28 +02:00 |
|
Sebastian Krzyszkowiak
|
897aa8b52f
|
character: honor x/y values from frames when calculating animation size
|
2018-06-03 03:39:11 +02:00 |
|
Sebastian Krzyszkowiak
|
71ec8b396e
|
shader: auto rebuild and auto destroy shaders
|
2018-05-31 20:52:16 +02:00 |
|
Sebastian Krzyszkowiak
|
5fe62da08f
|
tween: add SYMBOL_EXPORT macros
|
2018-05-31 20:51:44 +02:00 |
|
Sebastian Krzyszkowiak
|
9182cabf79
|
Add abstraction for GPU shaders
|
2018-05-30 21:11:46 +02:00 |
|
Sebastian Krzyszkowiak
|
52883755f1
|
timeline: initial API change for handling time delta
|
2018-05-30 03:10:03 +02:00 |
|
Sebastian Krzyszkowiak
|
b0d2c59596
|
add SwitchSpritesheet
|
2018-04-26 14:34:00 +02:00 |
|
Sebastian Krzyszkowiak
|
396e07a0ce
|
DrawCenteredTintedScaled
|
2018-04-24 22:06:06 +02:00 |
|
Sebastian Krzyszkowiak
|
34a36c2038
|
DrawCenteredScaled
|
2018-04-24 05:01:59 +02:00 |
|
Sebastian Krzyszkowiak
|
80f59dd749
|
tween: add function to just interpolate the value, without using Tween object
|
2018-04-23 03:24:13 +02:00 |
|
Sebastian Krzyszkowiak
|
0f14629a15
|
Introducing the tweening engine.
|
2018-04-22 05:30:56 +02:00 |
|
Sebastian Krzyszkowiak
|
01ae741558
|
loading: call Gamestate_Logic in single thread mode as well
|
2018-04-21 01:08:39 +02:00 |
|
Sebastian Krzyszkowiak
|
a9c318dd78
|
loading: call Gamestate_Logic
|
2018-04-21 00:11:34 +02:00 |
|
Sebastian Krzyszkowiak
|
0af3d8b1d0
|
ResumeExecution: guard against open/link failure on live reload
|
2018-04-18 23:14:05 +02:00 |
|
Sebastian Krzyszkowiak
|
08d2e544b7
|
character: read width/height values from ini file
|
2018-04-18 23:13:31 +02:00 |
|
Sebastian Krzyszkowiak
|
3938a78503
|
live reloading
|
2018-04-16 01:06:58 +02:00 |
|
Sebastian Krzyszkowiak
|
60b960ab2c
|
character: use Spritesheet structs instead of strings with names in callbacks
|
2018-04-15 23:00:53 +02:00 |
|
Sebastian Krzyszkowiak
|
c77c91e570
|
character: add GetSpritesheet for getting struct by name
|
2018-04-15 23:00:17 +02:00 |
|
Sebastian Krzyszkowiak
|
c9efd7afe2
|
character: don't animate hidden characters
|
2018-04-15 22:59:42 +02:00 |
|
Sebastian Krzyszkowiak
|
c3adf398b1
|
character: support non-repeating animations (stopping at the last frame)
|
2018-04-13 03:00:54 +02:00 |
|
Sebastian Krzyszkowiak
|
4240b47380
|
DestroyCharacter: print to console when the destroyed character is shared
|
2018-04-10 14:05:03 +02:00 |
|
Sebastian Krzyszkowiak
|
d017956442
|
IsOnCharacter: support flipped characters
|
2018-04-10 05:18:29 +02:00 |
|
Sebastian Krzyszkowiak
|
88b4399cae
|
character: fix character placement and flipping when drawing
|
2018-04-08 01:35:31 +02:00 |
|
Sebastian Krzyszkowiak
|
a8b57934db
|
Fix the unfamous Fajer crashing issue
|
2018-04-08 01:34:43 +02:00 |
|
Sebastian Krzyszkowiak
|
d4b2e1c65a
|
utils: rename Clip to Clamp, add Wrap
|
2018-04-08 01:34:26 +02:00 |
|
Sebastian Krzyszkowiak
|
7f420f62ad
|
Fixes for spritesheet handling
|
2018-04-08 01:34:06 +02:00 |
|
Sebastian Krzyszkowiak
|
adb15a9caf
|
libsuperderpy: init video addon
|
2018-04-08 01:33:13 +02:00 |
|
Sebastian Krzyszkowiak
|
df536baa32
|
character: save transform to character struct for easier handling by auxiliary helpers
|
2018-03-21 02:15:34 +01:00 |
|
Sebastian Krzyszkowiak
|
d88162cab4
|
spritesheets: support for predecessors and reversed animations
|
2018-03-21 02:05:22 +01:00 |
|
Sebastian Krzyszkowiak
|
f097ddc54a
|
display frame duration along with the fps counter
|
2018-03-20 23:49:22 +01:00 |
|
Sebastian Krzyszkowiak
|
b31d093e8c
|
New spritesheets
|
2018-03-20 21:39:37 +01:00 |
|
Sebastian Krzyszkowiak
|
e58fbdb560
|
Add a few utils from Rumina
|
2018-03-20 21:38:50 +01:00 |
|
Sebastian Krzyszkowiak
|
8d0df727cb
|
fix gameplay speed
|
2018-03-20 21:38:34 +01:00 |
|
Sebastian Krzyszkowiak
|
c85381644c
|
rumina hacks 3
|
2018-03-15 00:46:52 +01:00 |
|
Sebastian Krzyszkowiak
|
aa1f7f3ab9
|
General Characters refactor
|
2018-03-15 00:42:24 +01:00 |
|
Sebastian Krzyszkowiak
|
f0417b09f6
|
rumina hacks 2
|
2018-03-15 00:42:24 +01:00 |
|
Sebastian Krzyszkowiak
|
ae70770f77
|
rumina hacks
|
2018-03-15 00:42:24 +01:00 |
|
Sebastian Krzyszkowiak
|
686dab729a
|
Remove ALLEGRO_RENDER_METHOD sanity check
See liballeg/allegro5#887
|
2018-03-03 20:50:50 +01:00 |
|
Sebastian Krzyszkowiak
|
bb9bb692fe
|
config: fix compilation on MinGW
|
2018-03-03 20:31:44 +01:00 |
|
Sebastian Krzyszkowiak
|
1ac8491396
|
DrawConsole: use deferred bitmap drawing to speed up text rendering
|
2018-02-03 03:54:01 +01:00 |
|
Sebastian Krzyszkowiak
|
fc37ec592e
|
Add bunch of debug output on launch
|
2018-02-03 03:53:52 +01:00 |
|
Sebastian Krzyszkowiak
|
52fbb86d2f
|
Add pre/post logic/draw handlers
|
2018-02-03 03:39:30 +01:00 |
|
Sebastian Krzyszkowiak
|
c6b71f1686
|
Add delta parameter to Gamestate_Logic calls
|
2018-02-03 03:37:44 +01:00 |
|
Sebastian Krzyszkowiak
|
749bb1ef50
|
character: add ability to set the size of the confines
Useful when the size of the canvas being drawn to is different
than the size of the viewport (default confine).
|
2018-02-03 03:17:36 +01:00 |
|
Sebastian Krzyszkowiak
|
cb4b9638c8
|
utils: add missing new lines to debug/error output
|
2018-01-21 03:18:51 +01:00 |
|
Sebastian Krzyszkowiak
|
0cfef4ddca
|
BSOD: fix placement of the second-last line
|
2018-01-20 02:51:37 +01:00 |
|
Sebastian Krzyszkowiak
|
e2d9d21f3f
|
BSOD: fix formatting and warnings
|
2018-01-20 02:45:06 +01:00 |
|
Sebastian Krzyszkowiak
|
18efca478e
|
FatalError: print the error message to stderr
Printing to console outputs it to stdout, but only if
debug mode is enabled. stderr seems better suited too.
|
2018-01-20 02:24:33 +01:00 |
|
suve
|
2848753083
|
Use left-align for the wrapped error messages
|
2017-12-17 15:00:02 +01:00 |
|
suve
|
af53d1378f
|
Wrap long messages in FatalError()
|
2017-12-17 14:58:03 +01:00 |
|
suve
|
705f84cbf1
|
Reduce code redundancy in FatalError()
|
2017-12-17 14:19:24 +01:00 |
|
Sebastian Krzyszkowiak
|
499e884a62
|
commit Fajer's legacy, so it won't be forgotten
|
2017-10-30 21:22:49 +01:00 |
|
Sebastian Krzyszkowiak
|
a4ec09d9cd
|
updated .gitignore, code-cosmetics
|
2017-10-30 21:17:47 +01:00 |
|
Sebastian Krzyszkowiak
|
977a03db1e
|
future-proof Android support by using ALLEGRO_FRAMELESS when fullscreen
|
2017-10-12 21:04:18 +02:00 |
|
Sebastian Krzyszkowiak
|
56ea82d526
|
GetDataFilePath: change order of lookup paths and remove "../data"
|
2017-09-20 18:13:49 +02:00 |
|
Sebastian Krzyszkowiak
|
a3cda7ba50
|
try to search for gamestates in directory with binary before resorting to LD_LIBRARY_PATHs
|
2017-09-20 18:11:29 +02:00 |
|
Sebastian Krzyszkowiak
|
c34c13739d
|
add SetCharacterPivotPoint function
|
2017-09-15 23:44:44 +02:00 |
|
Sebastian Krzyszkowiak
|
ca33fd7752
|
make usage of clang-tidy configurable
|
2017-09-10 22:53:41 +02:00 |
|
Sebastian Krzyszkowiak
|
8cfde8c55f
|
SUPPRESS_WARNING macro
|
2017-09-10 22:37:02 +02:00 |
|
Sebastian Krzyszkowiak
|
bf4aa069a4
|
don't use empty initializers (it's a GNU extension)
|
2017-09-10 22:07:02 +02:00 |
|
Sebastian Krzyszkowiak
|
2b1248ce14
|
clang-tidy support; clang-tidy and clang-format fixes
|
2017-09-10 21:35:14 +02:00 |
|