Commit graph

54358 commits

Author SHA1 Message Date
Matthew Stewart
dbeb58f392 STARTREK: Palette fading 2018-08-09 08:37:30 +02:00
Matthew Stewart
4927cd90b7 STARTREK: Bitmap scaling 2018-08-09 08:37:30 +02:00
Matthew Stewart
612cf7bdbe STARTREK: Implement "xor'd" animations for crewmen 2018-08-09 08:37:30 +02:00
Matthew Stewart
fc89135a16 STARTREK: Get animation timing working properly 2018-08-09 08:37:30 +02:00
Matthew Stewart
d375429abe STARTREK: Objects and animations.
Testing them with the transporter room.
2018-08-09 08:37:30 +02:00
Matthew Stewart
fde5f22f97 STARTREK: setVisibleMenuButtons function 2018-08-09 08:37:30 +02:00
Matthew Stewart
aac4b2e99d STARTREK: Music/SFX enable and disable functions 2018-08-09 08:37:30 +02:00
Matthew Stewart
e578aa131f STARTREK: Rects don't include right/bottom pixel.
Fixes some off-by-one errors.
2018-08-09 08:37:30 +02:00
Matthew Stewart
432a2023e2 STARTREK: Fix placement of textboxes 2018-08-09 08:37:30 +02:00
Matthew Stewart
273131ce35 STARTREK: Quit game menu and mouse warp function 2018-08-09 08:37:30 +02:00
Matthew Stewart
d37e2aba0e STARTREK: Options menu 2018-08-09 08:37:30 +02:00
Matthew Stewart
e206d8e198 STARTREK: Remove executable bit on source files 2018-08-09 08:37:30 +02:00
Matthew Stewart
2932c392c4 STARTREK: Set default mouse sprite to stop crashes 2018-08-09 08:37:30 +02:00
Matthew Stewart
e1d70e6a04 STARTREK: Disabling menu buttons + text menu. 2018-08-09 08:37:30 +02:00
Matthew Stewart
69dac4d62d STARTREK: Add debug channel for sound 2018-08-09 08:37:30 +02:00
Matthew Stewart
f43c5d4687 STARTREK: Implement CD Audio handling. 2018-08-09 08:37:30 +02:00
Matthew Stewart
9c2ed1d9b7 STARTREK: Implement sound effects in the midis
Removed amiga and mac sound code for now since I can't test it.
2018-08-09 08:37:30 +02:00
Matthew Stewart
fd26d0a790 STARTREK: Begin implementing event system.
Textbox now responds to mouse input.
2018-08-09 08:37:30 +02:00
Matthew Stewart
295c55c510 STARTREK: Implement more text routines 2018-08-09 08:37:30 +02:00
Matthew Stewart
e4c5a34568 STARTREK: Add mouse cursor 2018-08-09 08:37:30 +02:00
Matthew Stewart
060d10c463 STARTREK: Fix off-by-1 bug in drawSprite 2018-08-09 08:37:30 +02:00
Matthew Stewart
a69f025818 STARTREK: Implement drawAllSprites properly.
Still need to do the part which calculates sprite priorities.
2018-08-09 08:37:30 +02:00
Matthew Stewart
7c62092367 STARTREK: Begin implementing menus 2018-08-09 08:37:30 +02:00
Matthew Stewart
2dd96e044f STARTREK: Begin implementation of showText.
Also started using SharedPtrs.
2018-08-09 08:37:30 +02:00
Matthew Stewart
8cd5441959 STARTREK: Implement addSprite and delSprite 2018-08-09 08:37:30 +02:00
Matthew Stewart
cd45502501 STARTREK: Implement draw modes 2 and 3 for sprites 2018-08-09 08:37:30 +02:00
Matthew Stewart
c71a8a6d2a STARTREK: Implement drawSprite function 2018-08-09 08:37:30 +02:00
Matthew Stewart
b84a3bb4f2 STARTREK: Make Bitmap, Sprite, FileStream classes 2018-08-09 08:37:30 +02:00
Matthew Stewart
60d672db73 STARTREK: Fixes to file loading.
The "numbered" files that I implemented can also use letters as the last
character.
2018-08-09 08:37:30 +02:00
Matthew Stewart
f2260d1e9a STARTREK: Implement loading "numbered" files 2018-08-09 08:37:30 +02:00
Matthew Stewart
b1878174ec STARTREK: Add detection for the ST25 Mac demo 2018-08-09 08:37:30 +02:00
Matthew Hoops
e07fe3f1a4 STARTREK: Import my startrek engine
Now updated even
2018-08-09 08:37:30 +02:00
David Fioramonti
b47cae789b TINSEL: Fix displayed saved game month off by one
This corrects the displayed month for querySaveMetaInfos being a month
behind.
2018-08-07 18:38:40 -07:00
Andrei Prykhodko
c255de107d PINK: implemented text drawing in ActionText for English version 2018-08-05 22:08:54 +03:00
Bastien Bouclet
ad3feae490 MOHAWK: RIVEN: Fix crash when clicking on a marble with the mouse moving
In some cases a mouse moved event could be handled between the moment
the xtakeit script was queued and the moment it is executed (on the same
frame), causing the mouse position no longer to be over a marble
rectangle.

Fixes #10647.
2018-08-04 06:42:17 +02:00
Adrian Frühwirth
a4ab2d8cfe SAGA: Deduplicate kScriptTimeTicksPerSecond constant 2018-08-03 14:58:09 +02:00
David Fioramonti
de1a35a9d9 GROOVIE: Allow saving via GMM and increase save slots to 25
If the user enters in an invalid description for the save then it will be
simplified by the saved name cache process in Script::savegame.

I checked this with t7g, but not with the 11th guest or any other Groovie game.

The original in-game loading/saving can still only access the first 10 save
slots (0-9).

Its possible to saving via the GMM when the game is interactive.

Loading a game saved via the gui using the original in-game load menu
works fine.

Saving via the GMM with timestamp works, but only only saves the characters
up to the first non-alpha non-letter characer.
2018-08-03 14:53:43 +02:00
David Fioramonti
f06cf65479 TINSEL: Add playTime to saved game and display it
Also bumps the saved game format version to 3.

I changed the order of how the data is saved so that the playtime could
be read in without skipping as much data.

This is because querySaveMetaInfos only needs the metafields where as
saveload::DoRestore() needs more of the header.

A crash was happening when trying to delete a saved game from the launcher.
It is because the engine is not initalized. I assign a dummy value to
resolve the issue.

Loading saved games from previous versions works.

When an old version saved game is loaded it will start with zero playtime.

Old saved games are shown as not having playtime data.
2018-08-03 14:52:47 +02:00
David Fioramonti
2649c429db LAB: By default skip thumbnail loading for readSaveGameHeader
This changes the convention back to skipping the thumbnail loading
for readSaveGameHeader. querySaveMetaInfos is the only place it
shouldn't be skipped.
2018-08-03 14:51:12 +02:00
David Fioramonti
3922370275 BLADERUNNER: Add cos/sine table
This uses the one in Common.

The engine now contains a 10-bit cosine and sine table.
It used mostly for vector math.

This also allows two vector functions to be removed from vector.h.
2018-08-03 14:50:45 +02:00
whiterandrek
e9fde87cf2 PINK: fixed bug when in walking state you choose another location 2018-08-02 21:09:27 +03:00
Colin Snover
8da86418bf PARALLACTION: Fix use-after-free on quit
Parallaction::_gfx is referenced by objects destroyed when
Parallaction::_input is destroyed so it cannot be destroyed first.
2018-08-01 16:44:51 +01:00
Colin Snover
69df2e2d0e PARALLACTION: Fix null pointer dereference on quit 2018-08-01 16:44:51 +01:00
Colin Snover
8f7f7a9c2b PARALLACTION: Fix invalid array access at dialogue selection
Also removes an unnecessary second condition check for oldAnswer
by moving that closer to its point of use.
2018-08-01 16:44:51 +01:00
D G Turner
574318c052 MOHAWK: Fix Unused Variable Compiler Warning.
This occurs when FreeType2 is not enabled and thus fontHeight variable
is unused.
2018-07-31 13:38:33 +01:00
D G Turner
2a4fa26d52 CRUISE: Fix Possible Invalid Thumbnail Pointer Access. 2018-07-31 09:22:26 +01:00
Bastien Bouclet
3a7f85971f MOHAWK: MYST: Add support for the localized 25th games 2018-07-30 20:13:16 +02:00
D G Turner
3f91accbd7 DM: Fix Possible Uninitialized Variable Usage Compiler Warnings. 2018-07-30 14:07:23 +01:00
Andrei Prykhodko
f79eceda10 PINK: force cursor updating when entering to pda page 2018-07-29 22:54:05 +03:00
Andrei Prykhodko
8530d9fbc5 PINK: fixed Coverity warnings 2018-07-29 21:34:20 +03:00