Commit Graph

49 Commits

Author SHA1 Message Date
Eugene Sandulenko
abea37c9bb
ALL: Update ScummVM project license to GPLv3+ 2021-12-26 18:48:43 +01:00
Paul Gilbert
baccbedf50 GRAPHICS: Changed surface classes sizes from uint16 to int16 2021-07-04 18:24:27 -07:00
Cameron Cawley
632150171e MOHAWK: RIVEN: Remove use of Graphics::ColorMasks 2021-06-24 11:55:54 +02:00
Orgad Shaneh
a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Bastien Bouclet
1d731aeef9 MOHAWK: Simplify retrieving game features 2020-03-28 07:38:39 +01:00
Bastien Bouclet
195d593405 MOHAWK: RIVEN: Allow changing the game language at run-time 2020-03-28 07:38:39 +01:00
Bastien Bouclet
1f5d4d1fdd MOHAWK: RIVEN: Configuration dialog changes
* Unify the custom options dialog (previously accessed through F5), and
  the in-game options dialog accessed through the Global Main Menu.
* Change the default keybinding for F5 to show the GMM for the non-25th
  anniversary editions of the game. This allows easy access to
  the load and save functionality. With the 25th anniversary edition,
  the main menu accessed through ESC should be used instead.
2020-03-28 07:38:39 +01:00
Michael Ball
366793db22 MOHAWK: RIVEN: Optimize image decoding
This mitigates long load times between cards on low-power devices
by streaming from memory. Code courtesy of Bastien Bouclet (bgK).
2020-03-18 20:40:32 +01:00
Filippos Karapetis
f5ed07c3e7 MOHAWK: Fix MSVC warnings
Fix assignments to float variables, by adding a float suffix
2019-05-27 14:53:40 +03:00
David Fioramonti
d7b511b98b MOHAWK: RIVEN: Return to main menu after the credits
Like the original the game loop returns to the main menu
after the credits end.

The variable states are reset and the player can start
a new game or load an old one.
2018-09-09 16:11:12 +02:00
Bastien Bouclet
3c8a0a3d2e MOHAWK: RIVEN: Wait for the sound track to end after the credit 2018-09-01 06:27:56 +02:00
David Fioramonti
33131554c1 MOHAWK: RIVEN: Let credits roll longer
Fixes Trac#10675.

Previously, the credits ended as soon as the last row was shown
of the final credits image.

Now some more black rows (empty rows) are shown and finally a few
seconds of black. I set it to 8 seconds of wait beyond where
the credits where previously stopping.

In order to do this updateCredits was enhanced to work past the end
of the last credits image (and just keep adding empty rows).

The original game shows a black screen for a longer period than this.

The credit image numbers are turned into enums.
2018-08-31 16:56:50 -04:00
Bastien Bouclet
ab46dae8d7 MOHAWK: RIVEN: Rework font loading so the TTF font is not leaked 2018-08-11 08:58:12 +02:00
Eugene Sandulenko
0ca52f62a4 MOHAWK: RIVEN: Draw menu with TTF fonts 2018-06-29 13:31:54 +02:00
Bastien Bouclet
b0681082a9 MOHAWK: RIVEN: Fix out of bounds write in the flies effect
Fixes Trac#10579.
2018-06-22 06:35:24 +02:00
Bastien Bouclet
84b2dc5cc8 MOHAWK: Fix some clang-tidy warnings 2018-03-31 13:36:09 +02:00
Colin Snover
432fd522d2 ENGINES: Remove default1x scaler flag
This flag is removed for a few reasons:

* Engines universally set this flag to true for widths > 320,
  which made it redundant everywhere;
* This flag functioned primarily as a "force 1x scaler" flag,
  since its behaviour was almost completely undocumented and users
  would need to figure out that they'd need an explicit non-default
  scaler set to get a scaler to operate at widths > 320;
* (Most importantly) engines should not be in the business of
  deciding how the backend may choose to render its virtual screen.
  The choice of rendering behaviour belongs to the user, and the
  backend, in that order.

A nearby future commit restores the default1x scaler behaviour in
the SDL backend code for the moment, but in the future it is my
hope that there will be a better configuration UI to allow users
to specify how they want scaling to work for high resolutions.
2017-10-07 12:30:29 -05:00
Bastien Bouclet
661487c2b5 MOHAWK: Riven: Move the water effect to its own class
Fixes the per frame scripts being leaked.
Fixes #10215.
2017-09-20 07:16:20 +02:00
Bastien Bouclet
c6e6d0b3df MOHAWK: Riven: Ensure the entire view is drawn when pan transitions complete
Fixes #10063.
2017-08-05 14:14:37 +02:00
Bastien Bouclet
69c1f70818 MOHAWK: Riven: Let the gameloop gracefully end when quitting
Prevents the quit confirmation dialog from being displayed at the end of
the game's ending if it is enabled.

Fixes #9943.
2017-07-29 18:20:45 +02:00
Bastien Bouclet
a7900f5756 MOHAWK: Riven: Stop sending empty rects when drawing transitions
Fixes #9947.
2017-07-15 07:23:58 +02:00
Bastien Bouclet
ef42fd3476 MOHAWK: Riven: Implement transition offsets
The games tries to match objects between the old and new card by
offsetting the transition of the new card.

Fixes #9947.
2017-07-14 19:45:23 +02:00
Bastien Bouclet
1141bfc1a6 MOHAWK: Riven: Clear the effects screen at the beginning of credits
It is used as a source for the fade from black effect. Ensures the first
fading effect fades from black and not the previous view.

Fixes #9929, #9930, #9931, #9932, #9933.
2017-07-10 08:07:45 +02:00
Bastien Bouclet
efcbe65757 MOHAWK: Riven: Fix ending video not playing when using the trap book
Fixes #9911.
2017-07-09 06:55:10 +02:00
Bastien Bouclet
08e642314e MOHAWK: Check the Books external commands against the original 2017-07-03 08:50:10 +02:00
Bastien Bouclet
121c0ee08c MOHAWK: Don't update the screen immediatly after drawing
Updating the screen needs to happen exactly once at the end of each game
loop.
2017-07-03 08:50:10 +02:00
Bastien Bouclet
f977b57123 MOHAWK: Rewrite the Riven movie manager 2017-07-03 08:50:10 +02:00
Bastien Bouclet
1aa4233802 MOHAWK: Rework stack frame updates to work like the original 2017-07-03 08:50:10 +02:00
Bastien Bouclet
aa32c5e584 MOHAWK: Pass rects by const reference in Riven's graphics manager 2017-07-03 08:50:10 +02:00
Bastien Bouclet
3900597996 MOHAWK: Implement card transitions for Riven 2017-07-03 08:50:10 +02:00
Bastien Bouclet
1286e7fcf0 MOHAWK: Use an enum for Riven's transition types 2017-07-03 08:50:10 +02:00
Bastien Bouclet
0ba035eea6 MOHAWK: Move Riven inventory code to a new class 2017-07-03 08:50:10 +02:00
Bastien Bouclet
ab2d151541 MOHAWK: Implement the (fire)flies effect mainly used in jungle island 2017-07-03 08:50:10 +02:00
Bastien Bouclet
85712e56c8 MOHAWK: Only allow a single pixel format in Riven to simplify the implementation 2017-07-03 08:50:10 +02:00
Bastien Bouclet
e9b67081c3 MOHAWK: Introduce the effects intermediary screen 2017-07-03 08:50:10 +02:00
Bastien Bouclet
05bed84a85 MOHAWK: Rename the card and stack accessors 2017-07-03 08:50:10 +02:00
Bastien Bouclet
3c8decec0a MOHAWK: Move the resource names to RivenStack 2017-07-03 08:50:10 +02:00
Bastien Bouclet
f752066a8e MOHAWK: Introduce a new RivenStack class 2017-07-03 08:50:10 +02:00
Bastien Bouclet
2fbe284a31 MOHAWK: Chane Riven's graphics manager to automatically handle screen updates 2017-07-03 08:50:10 +02:00
Bastien Bouclet
1bb5424ddd MOHAWK: Move PLST handling to the RivenCard class 2017-07-03 08:50:10 +02:00
Bastien Bouclet
abe6889bbe MOHAWK: Remove the current card id from the Riven engine class 2017-07-03 08:50:10 +02:00
Bastien Bouclet
2756d6226b MOHAWK: Add a Riven specific sound manager
- Add ambient sound fading
- Fix ambient sound volume to use the list-level volume
2016-08-11 19:53:20 +02:00
Strangerke
359ef3de53 MOHAWK: Initialize some more variables 2016-06-01 07:44:02 +02:00
Matthew Hoops
0a899876e7 MOHAWK: Use original stack ID mapping for Riven 2014-05-03 22:55:50 -04:00
Johannes Schickel
abd9e92086 MOHAWK: Make GPL headers consistent in themselves. 2014-02-18 02:39:36 +01:00
Johannes Schickel
575cfca013 MOHAWK: Take advantage of Surface::getPixels. 2013-08-03 04:02:51 +02:00
Johannes Schickel
6eb9c8da9e MOHAWK: Prefer getBasePtr over direct Surface::pixels access. 2013-08-03 02:52:32 +02:00
Johannes Schickel
d214391431 MOHAWK: Get rid of casts on OSystem::copyRectToScreen calls. 2012-06-16 02:38:59 +02:00
Matthew Hoops
5e52b0a5d4 MOHAWK: Split the graphics classes into their own files 2012-03-10 13:55:08 -05:00