Commit Graph
211 Commits
Author SHA1 Message Date
RichieSams 28e27ea1d9 ZVISION: Allow multiple sound effects to play at the same time
This is the original behavior. This was noted in bug #6761. Specifically,
the knocker on the door plays a sound whenever it is a the top of the bottom
of the swing. By only allowing one sound effect to play at the same time, the
knocker would only play once, even though it bounces at the bottom.
2015-01-15 00:31:39 -06:00
Filippos Karapetis 21e9007d80 Revert "ZVISION: Remove ActionRestoreGame and loading of r.svr (restart slot)"
This reverts commit 9f642074ba, as it
broke the credits screen in ZGI.

This has been rewritten to use the common save code
2015-01-10 22:03:15 +02:00
Filippos Karapetis 899cf4813c ZVISION: Change screen resolution for the hires DVD videos to 800x600
Also, this hooks up the MPEG-PS decoder, but only if libmpeg2 is
compiled in. The DVD videos are still disabled until AC3 audio support
is implemented.
The hires DVD videos are encoded a 720x480 resolution, with double the
frame rate of the lowres ones (29.97FPS up from 15FPS)
2015-01-10 21:32:15 +02:00
Filippos Karapetis 616b34e629 ZVISION: Change wording 2015-01-10 17:30:11 +02:00
Filippos Karapetis 79b92fe046 ZVISION: Clean up save logic, and fix a thumbnail-related FIXME
This fixes the save game thumbnails when using the original save/load
screens
2015-01-09 01:09:53 +02:00
Filippos Karapetis 4ffaf4df37 ZVISION: Add stubs for the hires VOB MPEG2 videos of ZGI DVD
VOB file handling is based on clone2727's work. The lowres videos are
played for now, until AC3 sound handling is implemented
2015-01-07 11:42:27 +02:00
Filippos Karapetis cdbc06d0f7 ZVISION: Use a common function for loading game animations 2015-01-07 11:42:26 +02:00
Filippos Karapetis 9f642074ba ZVISION: Remove ActionRestoreGame and loading of r.svr (restart slot)
This is handled internally now, so r.svr isn't needed anymore
2015-01-07 11:42:24 +02:00
Filippos Karapetis 64979d5e45 ZVISION: Fix regression in the handling of multiple animations
A regression from 0c4e0673c3. Thanks to Marisa-Chan for noticing
2014-12-30 15:38:03 +02:00
RichieSams 68d3ebd57b ZVISION: Rename some scripting classes to better represent what the classes are
Also, rename the graphics 'Effect' class in order to avoid naming clashes (and/or coder
confusion) with the newly named ScriptingEffect class.
Lastly, add some documentation for the classes for further clarity.
2014-12-30 01:10:36 -06:00
Filippos Karapetis 6c3af3c2e7 ZVISION: White space 2014-12-30 03:51:31 +02:00
Filippos Karapetis 0c4e0673c3 ZVISION: Further cleanup to the AnimationNode class 2014-12-30 03:08:39 +02:00
Filippos Karapetis f4d5b150f1 ZVISION: Show system messages when subtitles are disabled
Thanks to Marisa-Chan for spotting this
2014-12-29 12:34:55 +02:00
Matthew Hoops 6d55998b40 ZVISION: Make the rest of the controls properly use VideoDecoder timing
The hacky use of getDuration() to retrieve the framerate() is gone

Thanks to md5 for testing (and for filling in a few gaps since I was coding in the blind ;))
2014-12-28 21:27:56 -05:00
Filippos Karapetis 587b1ad69c ZVISION: The fist control is only used in one location 2014-12-28 18:42:18 +02:00
Filippos Karapetis 78b2c87d51 ZVISION: Document some more controls 2014-12-28 15:27:55 +02:00
Matthew Hoops d0ac190625 ZVISION: Use VideoDecoder facilities better in AnimationNode
setEndFrame() will ensure the audio stops when it is supposed to. Also removes the hack of retrieving the frame rate through the getDuration()'s timestamp return value.

Thanks to md5 for testing
2014-12-28 04:43:22 -05:00
Filippos Karapetis 1016838bd5 ZVISION: Add support for disabling animations while turning
Also, clean up and document game configuration options, and add a TODO
for QSound support
2014-12-27 16:34:27 +02:00
Filippos Karapetis db37cfb1b0 ZVISION: Remove duplicate blitting code for images and animations 2014-12-26 22:30:32 +02:00
Filippos Karapetis e5f0ee2271 ZVISION: Implement auto-saving 2014-12-26 18:22:18 +02:00
Filippos Karapetis eea1ee445f ZVISION: Move more graphics code out of the main engine code 2014-12-26 13:14:24 +02:00
Filippos Karapetis e8820d26e7 ZVISION: Fix a warning 2014-12-26 12:42:01 +02:00
Filippos Karapetis 5a72eea2bb ZVISION: Move some event/rendering code out of the main engine code 2014-12-26 12:41:36 +02:00
Filippos Karapetis 2350eca546 ZVISION: Remove some unused actions. Cleanup 2014-12-26 12:04:21 +02:00
Filippos Karapetis 4d0ebfaa22 ZVISION: Move the save manager together with the other file classes 2014-12-26 04:03:20 +02:00
Filippos Karapetis 3661bc4cf1 ZVISION: Normalize and cleanup all the menu-related enums 2014-12-25 22:11:29 +02:00
Filippos Karapetis 6368a6ea91 ZVISION: Move the menu code together with the other scripting code 2014-12-25 22:00:55 +02:00
Filippos Karapetis 6c451c9cf4 ZVISION: Document where MIDI commands are used 2014-12-25 21:48:59 +02:00
Filippos Karapetis 06fbca1e81 ZVISION: Remove dead code 2014-12-25 20:10:24 +02:00
Filippos Karapetis 36c851d0e4 ZVISION: Fix frame rate for RLF videos and remove hack in AnimationNode
_frameTime refers to msec, not ticks
2014-12-25 16:22:36 +02:00
Filippos Karapetis 5535cb02fc ZVISION: Resolve some TODOs 2014-12-25 15:14:59 +02:00
Filippos Karapetis 319323c668 ZVISION: Document some of the ActionRegion effects 2014-12-25 15:09:46 +02:00
Filippos Karapetis fa2d8d927b ZVISION: Plug more memory leaks 2014-12-24 23:27:03 +02:00
Filippos Karapetis 75d78c71cc ZVISION: Plug another memory leak. Some cleanup 2014-12-24 23:18:01 +02:00
Filippos Karapetis e8e21fabe4 ZVISION: Set all the internal graphics operations to use RGB555 (1/2)
This is the first part of the changes to make the engine use RGB555
internally again. This is done to simplify the rendering pipeline -
the engine will use RGB555 internally, but will output to RGB565.
The overall changes have been broken into two commits, thus this
first commit will break all the game colors
2014-12-24 22:56:55 +02:00
Filippos Karapetis 16e208318c ZVISION: Plug a memory leak 2014-12-24 22:56:54 +02:00
Filippos Karapetis 9948d3ca16 ZVISION: Add a hack to set the correct frame delay for RLF videos
Also, use Common::Rational to avoid using floating point math
2014-12-24 06:13:49 +02:00
Filippos Karapetis 6edc16b686 ZVISION: Spacing 2014-12-23 21:54:53 +02:00
Filippos Karapetis e8cc098cd4 ZVISION: Limit the engine delay, even when a custom frame rate is set 2014-12-23 11:54:39 +02:00
Filippos Karapetis 99073f9b57 ZVISION: Fix some buffer overruns with the usage of sscanf() 2014-12-23 02:20:17 +02:00
Filippos Karapetis 15154641ac ZVISION: Move all of the text related code together 2014-12-23 01:53:40 +02:00
Filippos Karapetis 9bc0686e60 ZVISION: Remove leftover warning 2014-12-23 00:09:18 +02:00
Filippos Karapetis 3f36cc94e4 ZVISION: Limit the default engine delay for all animations
This fixes the lag between frames for all in-game animations
with a default frame delay
2014-12-23 00:07:45 +02:00
Filippos Karapetis 4e60fa705f ZVISION: Fix regression from commit 3806aa4418 2014-12-23 00:07:44 +02:00
Filippos Karapetis 85644b8879 ZVISION: Prefix some class member variables with an underscore 2014-12-22 00:54:08 +02:00
Filippos Karapetis e5ecd500cf ZVISION: Document some controls that are only used in Zork: Nemesis 2014-12-21 23:33:48 +02:00
Filippos Karapetis 2170c9bc39 ZVISION: the type in ActionInventory is used as a signed byte now 2014-12-19 13:38:22 +02:00
Marisa-Chan 5fb33ee5e7 ZVISION: Fix unchecked return value (CID 1257098) 2014-12-19 17:19:12 +06:00
Marisa-Chan 79f75059de ZVISION: Fix copy into fixed size buffer (CID 1257096) 2014-12-19 17:18:46 +06:00
Marisa-Chan fafbd425dc ZVISION: Fix copy into fixed size buffer (CID 1257095) 2014-12-19 17:18:11 +06:00