aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst_stacks/myst.cpp
AgeCommit message (Collapse)Author
2018-07-08MOHAWK: MYST: Play complete audio clip when changing the boiler pressureBastien Bouclet
Fixes Trac#10607.
2018-07-03MOHAWK: MYST: Use degree conversion common math funcsDavid Fioramonti
2018-06-24Merge pull request #1220 from dafioram/mystDaySliderBastien Bouclet
MOHAWK: MYST: Increment y_pos of observatory day slider faster
2018-06-19MOHAWK: MYST: Fix out of bounds read when redrawing the observatoryBastien Bouclet
The observatory go button computes random 105x106 rectangles in the 512x512 star image. The previous code would allow to go out of bounds by 3 pixels. Interestingly the bug is in the original engine disassembly perhaps it could crash as well. Fixes Trac#10576.
2018-06-19MOHAWK: MYST: Increment y_pos of observatory day slider fasterDavid Fioramonti
Fixes Trac#10572. The day slider does not go all the way to the bottom (day 31st) when the down arrow is used to increment the day. This change increases how much y displacement happens with each change in the day so that the bottom is reach on day 31st. This is just a graphical bug and doesn't affect the logic of the puzzle. The day slider can also be dragged to the bottom without using the buttons.
2018-06-13MOHAWK: MYST: Make the scripts time accounting pause safeBastien Bouclet
2018-06-13MOHAWK: MYST: Move the current stack id to ScriptParserBastien Bouclet
2018-06-13MOHAWK: MYST: Extract a Card class out of the main engine classBastien Bouclet
This is to allow having multiple cards loaded at the same time in the future.
2018-04-27MOHAWK: MYST: Make Dni/Atrus endings an enumDavid Fioramonti
The global variable "ending" tracks various states that Atrus can be in. This variable determines what video of Atrus will be playing and if the brother books have been destroyed. Despite this variable being called ending there are other endings not captured by this variable (like the brother endings). Also change spelling of Dini to Dni for one usage of ActiveAge from a previous commit.
2018-04-26MOHAWK: MYST: Make global currentAge an enumDavid Fioramonti
This global basically tracks what age/book/stack the player is in. It is also used to change stacks via MohawkEngine_Myst::changeToStack() by being an index for MystScriptParser::_stackMap and MystScriptParser::_startCard. E.x., instead of _global.currentAge = 2 now _global.currentAge = kMystLibrary. Also two of the endings are considered Ages instead of being apart of _global.ending.
2018-04-25MOHAWK: MYST: Turn held page state into an enumdafioram
Previously, the held page stage was an unsigned int 16 with values 0-13. The enum will make its state more clear.
2018-04-24MOHAWK: MYST: Redraw the tower angle line after the rotation completesBastien Bouclet
Fixes Trac#10499.
2018-04-15JANITORIAL: Fix code formattingEugene Sandulenko
2018-04-15MOHAWK: MYST: Fix Observatory displayed hour from 0:XX to 12:XXDavid Fioramonti
Fixes #Trac10486. For 12 Hr format versions, in ScummVM when the hour was set to what should be 12:XX it was displayed as 0:XX. This differs with the original English versions which displays the 12:xx. I verified this fix in both Myst ME and Myst English CD.
2018-04-15MOHAWK: MYST: Fix observatory slider sounds repeating too quicklyBastien Bouclet
Add delays to simulate running at a lower framerate.
2018-04-11MOHAWK: MYST: Fix missing sound effect when using the rocket sliderBastien Bouclet
Fixes #10485.
2018-04-02MOHAWK: MYST: Initialize more variablesBastien Bouclet
To make static analysis tools quiet.
2018-04-02MOHAWK: MYST: Implement opcodes 178 and 179Bastien Bouclet
Used when turning pages in the library. Some versions of the game appear to use them. Fixes #10474.
2018-03-31MOHAWK: Fix some clang-tidy warningsBastien Bouclet
2017-08-10MOHAWK: Myst: Restore the backbuffer after toggling off fireplace buttonsBastien Bouclet
Fixes #10064
2017-08-08MOHAWK: Myst: Fix off by one pixel map position when rotating the towerBastien Bouclet
Fixes #10081.
2017-08-05MOHAWK: Myst: Display every second fireplace button animation frameBastien Bouclet
The animation is too slow when displaying each frame at 60 fps. Fixes #10053
2017-07-30MOHAWK: Myst: Set the mixer sound type to SFX for videosBastien Bouclet
Also simplify video filename construction.
2017-07-22MOHAWK: Myst: Fix error when checking the rocket sliders solution twiceBastien Bouclet
The game was trying to start playing the linking book video in a blocking way whereas it was set to loop by the first check. Fixes #9914.
2017-07-22MOHAWK: Myst: Don't cast function pointers when registering commandsBastien Bouclet
2017-07-22MOHAWK: Myst: Improve script execution tracingBastien Bouclet
2017-07-22MOHAWK: Myst: Switch to bounds checked opcode argumentsBastien Bouclet
2017-07-22MOHAWK: Myst: Rewrite the sound codeBastien Bouclet
It now more closely matches the original. Effect sounds are now stopped when resuming background sounds. Fixes #9574, Fixes #9920.
2017-07-22MOHAWK: Myst: Move the sound code to its own classBastien Bouclet
2017-07-22MOHAWK: Myst: Update the screen only once per frameBastien Bouclet
Change all inner loops to call the same frame function. Remove the draw delay code. Now that we have proper frame pacing it is not necessary anymore to wait before drawing to make sure the previous frame stayed on the screen long enough. Fixes #9915, #9922, #9923.
2017-07-22MOHAWK: Myst: Decorrelate hotspot handling from event handlingBastien Bouclet
This makes sure doFrame can be called from anywhere, including scripts.
2017-07-22MOHAWK: Myst: Change blocking sounds to use the main loopBastien Bouclet
2017-07-22MOHAWK: Myst: Change blocking movies and waits to use the main loopBastien Bouclet
2017-07-22MOHAWK: Get rid of VideoHandleBastien Bouclet
2017-07-22MOHAWK: Myst: Remove delayUntilMovieEndsBastien Bouclet
This will break movies called by scripts until event handling is decorrelated from script calls.
2017-07-09MOHAWK: Myst: Fix the piano sound effect restarting when moving the mouseBastien Bouclet
Fixes #9916.
2017-07-05MOHAWK: Myst: Poll for events every 10ms when waitingBastien Bouclet
2017-03-18MOHAWK: Allow the mouse cursor to move while drawing in a tight loopBastien Bouclet
2016-10-09JANITORIAL: Remove trailing spacesEugene Sandulenko
2016-09-25MOHAWK: Fix the tower rotation line to be white instead of blackBastien Bouclet
This was a regression from the default palette change. Fixes #9567.
2016-04-14JANITORIAL: Reduce GUI header dependenciesOri Avtalion
2016-03-28MOHAWK: Play the gears sound when resetting the Myst clock puzzleBastien Bouclet
Fixes #7093.
2016-03-05MOHAWK: Fix garbage being drawn when pressing the rockey piano keysBastien Bouclet
Was a regression introduced in 085f3700f7cd6ddb23abe3719ca21b7025695da4
2016-03-05MOHAWK: Adjust the Myst gauge boiler movie to the new VideoHandle semanticsBastien Bouclet
Fixes it not being updated.
2016-02-20MOHAWK: Remove an unneeded TODOBastien Bouclet
The original did not set the argument to wait until the foreground sound has finished before playing the background sound, so it's fine to play both at the same time.
2016-02-14MOHAWK: Play the handle going up anim when closing the Myst cabin safeBastien Bouclet
2016-02-07MOHAWK: Fix some incorrect MystArea castsBastien Bouclet
2016-02-07MOHAWK: Don't use static_cast to downcast view resourcesBastien Bouclet
2016-02-07MOHAWK: Don't downcast _invokingResource using static_castBastien Bouclet
2016-02-07MOHAWK: Rename Myst's Area classesBastien Bouclet