Commit Graph

86 Commits

Author SHA1 Message Date
Sven Hesse
bf60f06105 GOB: Add a workaround for taking the music sheet from Dr. Dramish's car
svn-id: r55530
2011-01-25 13:00:38 +00:00
Sven Hesse
9eea8c6bca GOB: Wait for the exact moment of the video sound's end
This should fix all cut-off sound issues in Urban Runner

svn-id: r55503
2011-01-24 14:10:15 +00:00
Sven Hesse
411d41d3d0 GOB: Change the NOCD workaround for Urban Runner a bit
Seems like the game does close the CD1.ITK too, so we just
open all ITKs right at the start, lest it might blow up when
it wants to close the top ITK and that's actually CD4.

svn-id: r55461
2011-01-23 11:00:57 +00:00
Sven Hesse
00cabdad11 GOB: Only let one video with sound play at a time
svn-id: r55444
2011-01-22 19:37:25 +00:00
Sven Hesse
0722df9472 GOB: Hacking in multiple live videos
Needed for Bambou. The narrator voice and the "Do you want to quit?"
voices are live videos that should continue while the live video
buttons are playing.

svn-id: r55443
2011-01-22 19:28:23 +00:00
Sven Hesse
5b4183fa27 GOB: Or actually, *this* should be the correct loop flag handling
svn-id: r55438
2011-01-22 17:19:58 +00:00
Sven Hesse
3f162962aa GOB: Oops, -10 = close video, < -10 = looping
svn-id: r55437
2011-01-22 16:56:02 +00:00
Sven Hesse
7fee6f9740 GOB: Proper live video looping
Fixes the Yes/No robots in Bambou

svn-id: r55436
2011-01-22 16:48:51 +00:00
Sven Hesse
cbbafc962d GOB: Extend the good-measure wait to all videos with sound
Fixes a glitch in Bambou, where the intro movie is cut off to
soon.

svn-id: r55432
2011-01-22 16:29:54 +00:00
Sven Hesse
6e254c4f01 GOB: Actually, startFrame == -2 seems to be the only live video flag
svn-id: r55418
2011-01-22 11:39:03 +00:00
Sven Hesse
5660b42a89 GOB: Another (?) non-blocking video flag
This fixes the intro needing an extra ESC.
Interestingly, the intro movie is actually interactive. You can
influence the paths Max takes by pressed the arrow keys at the
right times.

svn-id: r55411
2011-01-22 09:31:02 +00:00
Sven Hesse
bb6c230587 GOB: Implement looping live videos
Needed for the buttons in the Playtoons series

svn-id: r55359
2011-01-20 18:17:39 +00:00
Sven Hesse
03415868b0 GOB: Decrease the number of debug warnings
svn-id: r55358
2011-01-20 17:08:14 +00:00
Sven Hesse
fd7159075d GOB: Give sound-only videos 500 extra ms for good measure
svn-id: r55357
2011-01-20 17:07:46 +00:00
Sven Hesse
adf8820aee GOB: Make blocking videos default
svn-id: r55354
2011-01-20 15:29:32 +00:00
Sven Hesse
6b85f809d9 GOB: Urban: Fix missing visuals at Cemetary/Lab
Urban Runner decouples _frontSurface and
_spritesArray[kFrontSurface] at that screen... *sigh*

svn-id: r55346
2011-01-20 10:20:57 +00:00
Sven Hesse
bd3f9ad1e2 GOB: Use Surface::blit() in VideoPlayer::copyFrame()
svn-id: r55344
2011-01-20 05:19:41 +00:00
Sven Hesse
bad7f1ce9a GOB: Implement "live" (non-blocking) videos
Many thanks to SylvainTV. :)
Urban Runner might actually be completeable now.
One caveat: Hotspots at that hotel sequence are a bit glitchy...

svn-id: r55333
2011-01-19 18:57:43 +00:00
Sven Hesse
518e858d85 GOB: Allow true-color VMD cursors
svn-id: r55264
2011-01-16 16:30:15 +00:00
Sven Hesse
16a3cc8a84 GOB: Clean up class DataIO
Removing the need for class DataStream and that handle mess.

svn-id: r53984
2010-10-31 20:07:14 +00:00
Sven Hesse
835455798f GOB: Remove the now useless helper.h
svn-id: r53491
2010-10-15 13:55:18 +00:00
Sven Hesse
5c48c3fd2b GOB: Remove strncpy0()
Replacing it (and some strncpy + manual terminating) with
Common::strlcpy()

svn-id: r53490
2010-10-15 13:54:23 +00:00
Sven Hesse
51fd528fe5 GOB: Change all drawing to use class Surface
svn-id: r52947
2010-09-30 13:02:16 +00:00
Sven Hesse
e68b6e9f15 GOB: Remove dither stuff, commenting out most v6 drawing
svn-id: r52945
2010-09-30 13:00:30 +00:00
Eugene Sandulenko
b6d1c45bb7 GOB: Fix warnings about potentially uninitialized vars.
svn-id: r52142
2010-08-17 10:19:06 +00:00
Sven Hesse
5dc322454d GOB: Fix playing of sound VMDs with a starting frame != 0
svn-id: r51910
2010-08-08 01:02:49 +00:00
Sven Hesse
a2847e853b GOB: Make o6_loadCursor use the new VideoPlayer interface
svn-id: r51894
2010-08-08 00:54:52 +00:00
Sven Hesse
3295d6ec6b GOB: Make o6_playVmdOrMusic use the new VideoPlayer interface
svn-id: r51891
2010-08-08 00:53:27 +00:00
Sven Hesse
a802e1e64f VIDEO: Stub a VideoDecoder-like CoktelDecoder
This creates a new CoktelDecoder class using the VideoDecoder
interface, which will eventually become the new way to decode
PreIMD, IMD and VMD videos.
Since the VideoPlayer in gob is not yet ready for this, we're
disabling all video playback in the gob engine for now.

svn-id: r51850
2010-08-08 00:33:59 +00:00
Johannes Schickel
cbbb78d9f2 Enforce conversion formatting on pointer casts in the DEV code.
svn-id: r49068
2010-05-17 22:46:53 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Arnaud Boutonné
6a9cc3b1e0 - Implement _pattern variable
- Add oPlaytoons_putPixel and Playtoons specific spriteOperation (using _pattern)

svn-id: r44103
2009-09-15 12:15:22 +00:00
Arnaud Boutonné
3e0d3ed380 code formatting
svn-id: r43769
2009-08-27 12:20:21 +00:00
Arnaud Boutonné
6044cea5a0 Playtoons - delayed bgstop only when frame == -9
svn-id: r43765
2009-08-27 10:35:39 +00:00
Sven Hesse
081fa85b14 Playtoons uses a variable space that exceeds 32767 bytes. Changing a few variables to unsigned makes the construction mode not crash anymore (though it now hangs in a loop)
svn-id: r43713
2009-08-24 22:37:09 +00:00
Arnaud Boutonné
00857eabe1 Some modifications in o6_playVmdOrMusic: Less warnings in console Windows, and first animations on interface icons. still problematic : cursor should not disappear during animation, and animation should loop
svn-id: r43709
2009-08-24 21:53:15 +00:00
Sven Hesse
256a27350a Changed the scroll-handling to be more like the original. This fixes bug #2832362 ("GOB3: Scrolling locked after cutscene")
svn-id: r43147
2009-08-08 21:43:07 +00:00
Sven Hesse
edfaf7bc3c Added an enum for the hotspot states
svn-id: r42155
2009-07-05 21:40:51 +00:00
Sven Hesse
50108e9135 Renaming the last occurences of "Collision" to "Hotspot"
svn-id: r42153
2009-07-05 21:39:55 +00:00
Sven Hesse
aeb020602a More state-related encapsulation
svn-id: r42144
2009-07-05 19:56:40 +00:00
Sven Hesse
7e11c18fa2 Putting the Urban noCD check into Init_v6::initGame()
svn-id: r42130
2009-07-05 11:29:54 +00:00
Sven Hesse
18550c1314 Moving the "Collision" stuff to Hotspots in hotspots.cpp/.h
svn-id: r42123
2009-07-05 11:27:54 +00:00
Sven Hesse
e861fab808 Added a Key and ShortKey enum
svn-id: r42121
2009-07-05 11:27:11 +00:00
Sven Hesse
d03dc08b64 Wrapping resources (out of TOT, EXT, IM? and EX? files) loading into its own class
svn-id: r41839
2009-06-24 21:49:37 +00:00
Sven Hesse
c3aafec1fb Renaming parse.h and parse.cpp to expression.h and expression.cpp
svn-id: r41773
2009-06-22 16:30:35 +00:00
Sven Hesse
7d005f62c3 Putting evalBoolResult() and evalExpr() into Script
svn-id: r41760
2009-06-22 10:29:32 +00:00
Sven Hesse
7fbad08fd1 Implemented a call stack
svn-id: r41754
2009-06-22 10:14:18 +00:00
Sven Hesse
962fc19b57 Encapsulating script file access
svn-id: r41753
2009-06-22 10:13:37 +00:00
Sven Hesse
dd9e62e31e Adding DataIO::existData()
svn-id: r41752
2009-06-22 10:12:33 +00:00
Sven Hesse
1dafcabb43 Encapsulated access to _resultStr
svn-id: r41751
2009-06-22 10:11:53 +00:00