Commit Graph

176 Commits

Author SHA1 Message Date
Torbjörn Andersson
f4443646e5 Oops, now it plays the correct music again, I hope. The sound effects seem
a bit better now, too. At least the crowd is no longer cheering when the
fair is closed.

svn-id: r15617
2004-10-19 18:45:42 +00:00
Torbjörn Andersson
20e57d8bd5 Cleanup. No need to have a lookup table for something that can be expressed
by simple arithmetics.

svn-id: r15615
2004-10-19 18:11:50 +00:00
Torbjörn Andersson
82b6902b56 Initial, and slightly buggy, support for sound effects.
svn-id: r15614
2004-10-19 17:12:53 +00:00
Torbjörn Andersson
ec413cc8f9 Added support for digitized music, plus some other music-related fixes.
Note that I've only tried this with the music.rsc file from the full Linux
version. It seems likely that the Mac version uses the same file format,
but I have no way of verifying this. I'm told the demos use compressed
audio, so the music files from them probably won't work yet.

svn-id: r15527
2004-10-12 11:45:53 +00:00
Eugene Sandulenko
8b7740d8af R_POINT -> Common::Point, R_RECT -> Common::Rect. Less R_ prefixes.
svn-id: r15414
2004-10-04 23:09:38 +00:00
Torbjörn Andersson
ff1cf82089 A few, mostly untested, fixes to the SAGA script engine:
* The frame pointer is updated. This won't make any difference since we
  don't actually *use* the frame pointer yet.
* Return values from script functions are handled like in the original now,
  i.e. the function sets thread->retVal and lets the call instruction push
  it onto the stack. (There are two call instructions, one that handles
  return values and one that doesn't, so the script function doesn't know
  if it should push or not.)
* Script return values are handled.

None of this makes any noticeable difference to the ITE intro.

svn-id: r15393
2004-10-03 17:11:23 +00:00
Torbjörn Andersson
05829b6edb Enough stubs and pops to make the intro scene script finish properly.
svn-id: r15263
2004-09-25 10:11:17 +00:00
Torbjörn Andersson
caed46c816 Added support for scene music and the music-playing opcode to make the
opening scene a bit nicer.

svn-id: r15241
2004-09-23 06:53:46 +00:00
Torbjörn Andersson
c7338cccdb Replaced the standard stack with a custom-made. In the original SAGA engine
it appears that scripts are allowed to access the stack like any other
memory area, so it's probably important that our stacks behave as closely
to the original as possible.

I don't know if this implementation does that yet, but it's a start.

svn-id: r15240
2004-09-23 06:46:44 +00:00
Torbjörn Andersson
d49f0b90a0 The TourneySetup script now runs and finishes cleanly. However, this is not
as exciting as it first sounds, because even before this patch the script
would run in its entirety - it just didn't know when to stop.

I guess the exciting things don't happen until the next script is triggered
(TorneyScene?). I think it will be easier to start fixing the numerous
deficiencies (stack handling, SData, missing script functions, etc.) when
we have something more concrete to work with.

svn-id: r15215
2004-09-21 06:35:00 +00:00
Eugene Sandulenko
3fe739efb2 Merge SDEBUG_*, SF_* and STHREAD_* into Script class.
svn-id: r14568
2004-08-12 23:57:45 +00:00
Eugene Sandulenko
ec5d498703 Drop SSTACK_ in favor of common/stack.h implementation.
svn-id: r14566
2004-08-12 21:39:11 +00:00
Eugene Sandulenko
632042dae4 Move CON_* to a class.
svn-id: r14538
2004-08-10 18:31:33 +00:00
Eugene Sandulenko
602cd289f3 Move INTERFACE_ to class.
svn-id: r14478
2004-08-06 01:39:17 +00:00
Eugene Sandulenko
415400f24e Move TEXT_* to SagaEngine class.
svn-id: r14450
2004-08-03 00:40:16 +00:00
Eugene Sandulenko
166b05aed4 Fix #include paths.
svn-id: r14443
2004-08-02 16:20:35 +00:00
Eugene Sandulenko
98816ad3ae Objectize actor.cpp
svn-id: r14441
2004-08-02 15:47:42 +00:00
Joost Peters
48cddda4b9 move SDATA_* into seperate class
svn-id: r14424
2004-08-01 19:53:29 +00:00
Jonathan Gray
0bbeb61f5e merge gfx_mod.h into gfx.h and stick functions into a class
svn-id: r14419
2004-08-01 11:48:53 +00:00
Jonathan Gray
182dd48bd4 merge reinherit.h into saga.h and gfx_mod.h, note the error loading animations wasn't caused by this commit :)
svn-id: r14405
2004-08-01 01:56:22 +00:00
Jonathan Gray
59c88e428b merge animation.h and animation_mod.h into a class
svn-id: r14388
2004-07-31 13:34:43 +00:00
Jonathan Gray
c7d6425a38 remove YS_IGNORE_PARAM macro and some uneeded yslib.h includes
svn-id: r14385
2004-07-31 12:37:36 +00:00
Eugene Sandulenko
1b78dc468f Added more stubs from script fucntions, some renames for consistency with
disassembly.

svn-id: r13835
2004-05-13 01:41:23 +00:00
Paweł Kołodziejski
3ad363a274 indent
svn-id: r13713
2004-05-01 14:34:00 +00:00
Eugene Sandulenko
1353e2d2dc Move from custom unsigned types to those provided by main config.h
svn-id: r13687
2004-04-30 23:02:23 +00:00
Eugene Sandulenko
f3d340fb0c WIP for SAGA engine.
o text formatting is not consistent with rules, just indent utility is too
   dumb for that
 o it does not use OSystem, i.e. it runs on direct SDL calls
 o it may not even compile on your box
 o if you enable it, expect zillions of warnings
 o no sound

Now it runs ITE intro as reinherit did

svn-id: r13564
2004-04-12 21:40:49 +00:00