Commit graph

493 commits

Author SHA1 Message Date
Sebastian Krzyszkowiak
519a22c9ad link to allegro5-video 2017-06-26 15:21:13 +02:00
Sebastian Krzyszkowiak
28f9f708b9 android: allow moving the app to external memory 2017-06-26 13:53:20 +02:00
Sebastian Krzyszkowiak
2dbabc502b always require OpenGL context 2017-06-26 03:19:32 +02:00
Sebastian Krzyszkowiak
de7311dabf fixed screen orientation support 2017-06-26 03:18:54 +02:00
Sebastian Krzyszkowiak
c97e163b31 don't require debug mode to be enabled in order to make a screenshot 2017-06-25 17:37:41 +02:00
Sebastian Krzyszkowiak
25a5bcfc1f add Spider Disco to README 2017-06-17 18:05:16 +02:00
Sebastian Krzyszkowiak
7241476886 use NotPreservedBitmap for game console 2017-06-13 14:21:17 +02:00
Sebastian Krzyszkowiak
d3f876097f add CreateNotPreservedBitmap helper 2017-06-13 14:21:17 +02:00
Sebastian Krzyszkowiak
e0c422972b add TM_DrawDebug: debug view for timelines 2017-03-16 22:05:22 +01:00
Sebastian Krzyszkowiak
e873e96194 fix compiler warning 2017-03-07 01:00:27 +01:00
Sebastian Krzyszkowiak
31f173f2a8 character: add support for repeating animation with successor
plus update README
2017-03-04 19:54:48 +01:00
Sebastian Krzyszkowiak
c472bd861c add Fajer to README 2017-02-21 01:47:37 +01:00
Sebastian Krzyszkowiak
f3122bbb60 update README 2017-01-25 01:33:31 +01:00
Sebastian Krzyszkowiak
5eeba6ec45 README: add links to new games 2016-12-09 02:12:03 +01:00
Sebastian Krzyszkowiak
ca2f26e9ff add DrawScaledCharacter(F) 2016-12-06 02:54:31 +01:00
Sebastian Krzyszkowiak
bd57582b01 enable joystick support 2016-12-05 23:56:41 +01:00
Sebastian Krzyszkowiak
098231269c call Gamestate_Pause/Resume also on freezing 2016-11-11 20:17:02 +01:00
Sebastian Krzyszkowiak
fdd48433bc gamestate reloading and fix for calling Gamestate_Pause/Gamestate_Resume 2016-11-11 19:38:26 +01:00
Sebastian Krzyszkowiak
4b53b59e05 proper gamestate freezing on suspending android activity 2016-11-09 00:40:13 +01:00
Sebastian Krzyszkowiak
fd7f68d616 don't pollute source directory with generated header 2016-11-09 00:32:38 +01:00
Sebastian Krzyszkowiak
4ecb7e71de revamp letterbox and scaling code and add WindowCoordsToViewport util function 2016-11-08 23:28:28 +01:00
Sebastian Krzyszkowiak
625f202156 add ability to define game-specific global event handler 2016-11-08 22:11:10 +01:00
Sebastian Krzyszkowiak
5619fc993b add launcher icon on Android 2016-11-08 18:01:34 +01:00
Sebastian Krzyszkowiak
a4ce032c8b don't crash on devices with no touchscreen 2016-11-08 17:56:19 +01:00
Sebastian Krzyszkowiak
6ac268f50b Revert "don't call al_get_touch_input_event_source on OSX, seems buggy"
This reverts commit d65873d63b.
2016-11-08 17:43:10 +01:00
Sebastian Krzyszkowiak
4d749b3ad1 make screen rotation working on Android
libsuperderpy now requires Allegro 5.2.2 for Android
2016-11-08 17:42:23 +01:00
Sebastian Krzyszkowiak
d65873d63b don't call al_get_touch_input_event_source on OSX, seems buggy 2016-11-08 11:17:27 +01:00
Sebastian Krzyszkowiak
51590d9788 fix blinking borders outside clipping rectangle 2016-11-08 10:34:32 +01:00
Sebastian Krzyszkowiak
c3fb2e06f1 more robust Android support 2016-11-07 01:45:12 +01:00
Sebastian Krzyszkowiak
4c09151dae basic Android support 2016-11-06 03:10:43 +01:00
Sebastian Krzyszkowiak
b4ec03d3da update README 2016-11-06 00:00:24 +01:00
Sebastian Krzyszkowiak
ce4b474b5a fix aspect ratio letterboxing on automatic resolution 2016-10-21 12:49:24 +02:00
Sebastian Krzyszkowiak
fc9317d215 add DrawWrappedTextWithShadow 2016-09-08 01:42:48 +02:00
Sebastian Krzyszkowiak
f7362d3d74 added DrawWrappedText, some clean up 2016-09-08 00:32:57 +02:00
Sebastian Krzyszkowiak
e50b8619e8 update README 2016-09-06 02:01:15 +02:00
Sebastian Krzyszkowiak
655cce6abe Timeline Manager: run next action in main queue immediatelly after the last one ended 2016-09-06 01:48:30 +02:00
Sebastian Krzyszkowiak
9c414991dd SetupViewport: clear both backbuffer and fontbuffer on setup 2016-09-06 01:47:46 +02:00
Sebastian Krzyszkowiak
9c3d284a90 fix type warning on some platforms in screenshoting code 2016-09-06 01:47:12 +02:00
Sebastian Krzyszkowiak
c7741be51a streamline al_set_new_display_flags usage 2016-09-04 21:09:19 +02:00
Sebastian Krzyszkowiak
8bebe6c5e2 timeline: add new functions: TM_IsEmpty, TM_IsBackgroundEmpty, TM_SkipDelay 2016-09-04 03:06:26 +02:00
Sebastian Krzyszkowiak
26843776a2 gamestates: mark gamestate as started before launching Gamestate_Start
This change allows to stop the current gamestate from Gamestate_Start.
2016-09-04 01:26:41 +02:00
Sebastian Krzyszkowiak
3b6f79de29 update README 2016-09-02 01:30:41 +02:00
Sebastian Krzyszkowiak
96a33c1a37 make windowed display resizable and try to fix flickering border around the viewport 2016-09-02 00:07:43 +02:00
Sebastian Krzyszkowiak
2e1a7e73fd add IsOnCharacter helper function 2016-08-29 23:44:15 +02:00
Sebastian Krzyszkowiak
40cdf33bb8 add support for user events 2016-08-29 22:47:55 +02:00
Sebastian Krzyszkowiak
b4d9d01c01 don't dlclose gamestates when running on valgrind, so it can show its report correctly 2016-08-27 00:46:38 +02:00
Sebastian Krzyszkowiak
04db328028 refine Character API
BREAKING CHANGES: character->x and character->y now refer to position relative
to screen width and height (0.0,0.0 being top left; 1.0,1.0 being bottom right).
Use GetCharacterX and GetCharacterY to get position in pixels.
For consistency, it's also recommended to use GetCharacterAngle.
SetCharacterPosition/MoveCharacter still accept pixels.
To use relative positions, call SetCharacterPositionF/MoveCharacterF instead.

Also, DrawCharacter now casts the position to integer, effectively disabling
Allegro's subpixel precision. To disable casts, use DrawCharacterF.
2016-08-26 23:52:32 +02:00
Sebastian Krzyszkowiak
af6636009e make viewport configurable 2016-08-23 02:13:15 +02:00
Sebastian Krzyszkowiak
39eeeb44fd use al_resume_timer where appropriate 2016-08-21 21:58:47 +02:00
Sebastian Krzyszkowiak
b927a0c130 add a bunch of new gamestate lifecycle methods to simplify game pausing 2016-08-21 21:58:31 +02:00