77792 Commits

Author SHA1 Message Date
Filippos Karapetis
684cbfa2fd CHEWY: Add support for palette fadeout to videos 2016-10-10 04:42:06 +03:00
Filippos Karapetis
a292fcdd93 CHEWY: Fix typo 2016-10-10 04:41:31 +03:00
Filippos Karapetis
bda8a9b92b CHEWY: Initial work on converting TMF music data back to MOD data
This way, we can use our regular Protracker MOD player
2016-10-09 23:39:41 +03:00
Filippos Karapetis
0a4c1eeca1 CHEWY: Move all sound functions into sound.* 2016-10-09 23:38:39 +03:00
Filippos Karapetis
c1e44df357 CHEWY: Use atds.tap for detection
Now that a lot of the game's resources have been figured out, it turns
out that using comic.tgp was a bad idea, as it's the same in both the
English and German versions. atds.tap contains all of the game's texts,
so it is probably the best candidate for detection
2016-10-09 23:34:51 +03:00
Filippos Karapetis
339e1c1f88 CHEWY: Pass the text parameter of getLine() by reference
Saves an unneeded copy
2016-10-09 23:33:19 +03:00
Filippos Karapetis
8df9eb5b8f CHEWY: Fix undefined behavior 2016-10-07 12:29:14 +03:00
Filippos Karapetis
c3a4950c98 CHEWY: Properly dispose audio streams after use 2016-10-07 09:31:16 +03:00
Filippos Karapetis
7002ede1ed CHEWY: Const correctness 2016-10-07 03:13:16 +03:00
Filippos Karapetis
cf7c010d47 CHEWY: Use new instead of malloc() in the CFO video decoder
Thanks to wjp for noticing this
2016-10-07 03:12:00 +03:00
Filippos Karapetis
384b61a9fb CHEWY: Optimize font drawing
Thanks to _sev for the suggestion
2016-10-05 10:47:56 +03:00
Filippos Karapetis
18d6c501fc CHEWY: Add support for in-game texts 2016-10-05 10:47:22 +03:00
Filippos Karapetis
19dab45c8c CHEWY: Initial support for in-game texts (game dialog texts) 2016-10-04 02:27:22 +03:00
Filippos Karapetis
cec2799c64 CHEWY: Properly handle the text encryption in atds.tap (game texts) 2016-10-03 05:29:58 +03:00
Filippos Karapetis
9e5b745a12 CHEWY: Process events while waiting for video music to end 2016-10-03 01:44:46 +03:00
Filippos Karapetis
f61aee3c70 CHEWY: Mask potentially overflown palette values 2016-10-03 01:44:09 +03:00
Filippos Karapetis
8f9412984d CHEWY: Fix define for chewy.h 2016-10-03 01:40:07 +03:00
Filippos Karapetis
891813c9e1 CHEWY: TCF resources contain error messages, not in-game text 2016-10-03 01:38:48 +03:00
Filippos Karapetis
b394b1b687 CHEWY: Fix compilation 2016-10-03 01:10:49 +03:00
Filippos Karapetis
ce800ff1ce CHEWY: Fix warnings about shadowed and unused variables 2016-10-03 01:10:34 +03:00
Filippos Karapetis
263fdb357b CHEWY: Some cleanup, and remove a seemingly unused resource 2016-10-03 00:34:59 +03:00
Filippos Karapetis
832b97c1d5 CHEWY: Rename some variables 2016-10-03 00:34:50 +03:00
Filippos Karapetis
88f3fc0760 CHEWY: Implement initial sprite drawing, font loading and text drawing 2016-10-03 00:34:36 +03:00
Filippos Karapetis
8c7c42d13d CHEWY: Use virtual destructors. Some cleanup 2016-10-03 00:34:32 +03:00
Filippos Karapetis
8c755b268c CHEWY: Add the event manager to module.mk 2016-10-03 00:34:23 +03:00
Filippos Karapetis
93a83a6b86 CHEWY: Add an event manager, and get rid of g_engine 2016-10-03 00:34:14 +03:00
Filippos Karapetis
8767b44fe0 CHEWY: Initial work on cursor animations 2016-10-03 00:34:09 +03:00
Filippos Karapetis
94a942755e CHEWY: Initial support for game sprites 2016-10-03 00:34:05 +03:00
Filippos Karapetis
1de9019665 CHEWY: Remove some unused CFO video custom sub chunks 2016-10-03 00:34:01 +03:00
Filippos Karapetis
7234574370 CHEWY: Add support for sound effects in videos 2016-10-03 00:33:57 +03:00
Filippos Karapetis
ecc212a31a CHEWY: Properly close videos when they end 2016-10-03 00:33:53 +03:00
Filippos Karapetis
7331bdc6b1 VIDEO: Allow parts of the FLIC decoder to be overriden by child classes
This is needed by the specialized FLIC video decoder used in the chewy
engine
2016-10-03 00:33:49 +03:00
Filippos Karapetis
0152b7c47f CHEWY: Add initial video (CFO) player
The game's videos are modified FLICs. There are some changes needed
to our FLIC decoder, which are included in a separate commit
2016-10-03 00:33:45 +03:00
Filippos Karapetis
f017940ca0 CHEWY: Initial work on game videos 2016-10-03 00:33:41 +03:00
Filippos Karapetis
b60f5023ed CHEWY: Add a TODO for the currently unhandled resource files 2016-10-03 00:33:37 +03:00
Filippos Karapetis
a196bfff57 CHEWY: Add support for encrypted text resources
These are mainly used for error messages
2016-10-03 00:33:32 +03:00
Filippos Karapetis
c6ccd8bbe8 CHEWY: Use a specialized resource handler for each resource 2016-10-03 00:33:29 +03:00
Filippos Karapetis
676fa15c19 CHEWY: Add methods for playing sound, speech and music to the debugger 2016-10-03 00:33:24 +03:00
Filippos Karapetis
078cbf0b08 CHEWY: Add a sound player class and use the proper game resolution
Currently, speech and sound effects are supported, but the current
music playing implementation is wrong, as the game's music is
encoded in custom MOD-like files. With the current music
implementation, the PCM parts of these files are played
2016-10-03 00:33:21 +03:00
Filippos Karapetis
8ab1846f59 CHEWY: Add support for SFX and speech resources to the resource manager 2016-10-03 00:33:16 +03:00
Filippos Karapetis
b7e4bcf3f2 CHEWY: Another bugfix for drawImage() 2016-10-03 00:33:12 +03:00
Filippos Karapetis
8970473f6c CHEWY: Add a "draw" console command to draw game images 2016-10-03 00:33:08 +03:00
Filippos Karapetis
3a5cd65d6d CHEWY: Bugfix for drawImage() 2016-10-03 00:33:04 +03:00
Filippos Karapetis
98e838275f CHEWY: Adjust comments 2016-10-03 00:33:00 +03:00
Filippos Karapetis
03aae70855 CHEWY: Add a graphics class and an image drawing test 2016-10-03 00:32:56 +03:00
Filippos Karapetis
182debe908 CHEWY: Add a console, with a "dump" command to dump resources 2016-10-03 00:32:52 +03:00
Filippos Karapetis
e60fbde1d2 CHEWY: More work on res manager, add support for RLE encoded resources 2016-10-03 00:32:48 +03:00
Filippos Karapetis
039261e731 CHEWY: Initial implementation of a resource manager, and a main loop 2016-10-03 00:32:44 +03:00
Filippos Karapetis
9dd2e5d24e CHEWY: Implement detection for the English version 2016-10-03 00:32:40 +03:00
Eugene Sandulenko
77e60faa03 CHEWY: Fix compilation with plugins enabled 2016-10-03 00:32:36 +03:00