1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

132 Commits

Author SHA1 Message Date
Mathieu Schroeter
d7befe3d7e Fix game reloading by using the absolute bin directory 2018-08-23 22:40:58 +02:00
Mathieu Schroeter
295804fb27 Fix legacy mode reload with AppImage 2018-08-17 10:30:48 +02:00
Mathieu Schroeter
65f3908747 Fix env variable scope 2018-08-15 07:31:10 +02:00
Mathieu Schroeter
8c7f1ed329 Set the ALSA default configdir if not defined
It should fix the use of ALSA when pulseaudio is not
available.

It concerns the issue #67.
2018-08-15 07:25:35 +02:00
Mathieu Schroeter
ad91d25fb8 Fix mouse sprites and hovers when an update is doing
Otherwise it's possible to have de desync between the current state of
the last update and the last time that the mouse was handled. It works
much better now because it's no longer possible to have for example a
red cross on the ground when a tomato has finished to grow. The mouse
state is immediatly fixed by the update.
2018-08-08 18:38:27 +02:00
Mathieu Schroeter
67c2103f3c Cosmetic: rename because it's not just the frame 2018-08-08 18:37:40 +02:00
Mathieu Schroeter
ec1393cc4e Fix text about anti-aliasing 2018-08-08 07:30:34 +02:00
Mathieu Schroeter
476da8638d Create the main texture with the quality restored from the info file 2018-08-07 00:06:46 +02:00
Mathieu Schroeter
9c662586b0 Fix typo 2018-08-07 00:04:43 +02:00
Mathieu Schroeter
8b7142a084 Add the option for chaning the render quality
It toggles between 'nearest' (faster) and 'best' (slower but more
prettier). It's enabled only when the game runs in fullscreen.

The option can be passed by command line argument `--render-quality on`,
by settings.json file with a `"renderquality": true` entry or simply
with the main settings screen in the game.
2018-08-06 07:20:23 +02:00
Mathieu Schroeter
d43bbb9784 Update copyrights where appropriate 2018-08-03 12:20:15 +02:00
Mathieu Schroeter
39a2cf926b Optimize the wide background stuff by loading only on demand
It uses less memory.
2018-07-30 18:39:08 +02:00
Mathieu Schroeter
68fd32a18d Remove back-title to back-stars 2018-07-25 18:09:26 +02:00
Mathieu Schroeter
d1fc426e48 Pass the pixmap to the movie class 2018-07-24 23:58:49 +02:00
Mathieu Schroeter
8d67df23b1 Add widescreen background for school win screen 2018-07-23 23:34:06 +02:00
Mathieu Schroeter
83d5b34416 Add widescreen background for title screen 2018-07-23 18:41:54 +02:00
Mathieu Schroeter
d458b67fd2 Add widescreen background for wind and lost screens 2018-07-23 17:49:35 +02:00
Mathieu Schroeter
a6b35337b5 Add widescreen background for bye screen 2018-07-23 07:27:20 +02:00
Mathieu Schroeter
c9c4944e6a Add wide background for setup screens 2018-07-22 23:14:04 +02:00
Mathieu Schroeter
8299c401a6 Add wide background for chest read 2018-07-22 16:09:12 +02:00
Mathieu Schroeter
1bedfdca85 Add wide background for chest write 2018-07-22 16:00:23 +02:00
Mathieu Schroeter
4a75c5e66a Restore gettext calls (it's ok with emscripten too) 2018-07-21 17:51:17 +02:00
Mathieu Schroeter
73aab3ddb2 Start the update thread only if cURL is available 2018-07-21 17:44:29 +02:00
Mathieu Schroeter
298d02c6f9 Change the fullscreen mode with JS too
But the fullscreen provided by the browser is not handled by the game.
It must be forwarded in the native code in order to switch properly the
fullscreen boolean.
2018-07-21 17:32:54 +02:00
Mathieu Schroeter
a7704f9fa0 Use the user desktop resolution even with JS 2018-07-21 17:24:40 +02:00
Mathieu Schroeter
561469f4fd WIP 2018-07-20 14:54:08 +02:00
Mathieu Schroeter
1216ca08b6 WIP: add emscripten support 2018-07-19 23:17:23 +02:00
Mathieu Schroeter
7a7c7c9f64 Fix init image output rect when loading 2018-07-17 23:46:06 +02:00
Mathieu Schroeter
bc0a7cbc76 Do not prepend SDL headers by SDL2/
It's not always the case.
2018-07-17 18:13:08 +02:00
Mathieu Schroeter
965a93e0cc Add missing header for execv 2018-07-02 22:03:52 +02:00
Mathieu Schroeter
652e6b81e3 Ensure to restart the game with the right params with legacy mode 2018-06-30 15:41:28 +02:00
Mathieu Schroeter
6bf6b3de07 Restart the game when the display mode has changed 2018-06-28 23:55:08 +02:00
Mathieu Schroeter
05dd698578 Add a --legacy option for starting the game in 640x480 mode 2018-06-28 23:54:30 +02:00
Mathieu Schroeter
988962d74a Retrieve the right ratio accordingly to the current display
It's no longer forced to 16:9.
2018-06-27 17:31:59 +02:00
Mathieu Schroeter
e260ddf5e3 Add missing comment for #if 2018-06-26 22:49:34 +02:00
Mathieu Schroeter
375388b22f Fix mouse position when changing zoom and fullscreen 2018-06-25 22:17:39 +02:00
Mathieu Schroeter
c79961e803 Merge branch 'wip/fullscreen' into wip/landscape 2018-06-13 23:42:55 +02:00
Mathieu Schroeter
b3c6b53693 WIP: add impl. of fullscreen desktop
It's possible to switch between both mode (fullscreen 640x480 and
fullscreen desktop). The zoom option is used for this switch in
fullscreen. The textes must be adapted in this case.
2018-06-13 23:16:59 +02:00
Mathieu Schroeter
daf70260de Pass the event manager to pixmap 2018-06-13 23:10:24 +02:00
Mathieu Schroeter
84a671a763 Merge branch 'master' into wip/landscape 2018-06-11 23:22:37 +02:00
Mathieu Schroeter
3aba743cd4 Reload the textures when the renderer is asking for
It seems that it fixes textures lose completly.
2018-05-31 22:46:03 +02:00
Mathieu Schroeter
cd7fbf1fb7 Merge branch 'master' into wip/landscape 2018-05-30 06:58:27 +02:00
Mathieu Schroeter
8c2bcf6244 Ignore the window position when creating 2018-05-29 17:41:31 +02:00
Mathieu Schroeter
e88e58863b Merge branch 'master' into wip/landscape 2018-02-19 18:13:21 +01:00
Mathieu Schroeter
883ab7ca19 Free the renderer only fter the textures in order to prevent double free
The reason is that the renderer tries to free the associated textures.
It generates assertion errors on macOS.
2018-02-05 18:22:31 +01:00
Mathieu Schroeter
6975b664b9 Prefer directsound over winmm under Windows 2018-01-31 23:38:27 +01:00
Mathieu Schroeter
9543ebb60f Add support for all drivers (renderers) 2017-12-14 23:42:54 +01:00
Mathieu Schroeter
dc8f6319f0 Cosmetic: rename windowScale to zoom 2017-12-14 23:10:24 +01:00
Mathieu Schroeter
d27aaf4b3e Cosmetic: remove stupid comment 2017-12-14 23:08:05 +01:00
Mathieu Schroeter
1db67ed200 Save the window zoom and fullscreen settings in the user preferences 2017-12-14 23:07:17 +01:00