532 Commits

Author SHA1 Message Date
Max Horn
13a13ae10a cleanup
svn-id: r17873
2005-04-30 15:04:16 +00:00
Eugene Sandulenko
f8283f3aa5 Add comment to NES-specifix gfx hack with virtual screens
svn-id: r17861
2005-04-29 06:36:03 +00:00
Travis Howell
cbd2e319ea Ooops
svn-id: r17860
2005-04-29 01:45:38 +00:00
Travis Howell
2f262b3c3e Add HE90 version of processActors().
Add HE71 class, for HE71+ specifics.

svn-id: r17859
2005-04-29 01:36:30 +00:00
Max Horn
d03b092659 Moved blast text/object code to ScummEngine_v6
svn-id: r17856
2005-04-28 22:34:56 +00:00
Max Horn
18bf7c7900 Comment on some MM NES oddity, I hope somebody can explain this :-)
svn-id: r17845
2005-04-28 00:22:05 +00:00
Max Horn
b56b84b145 Use kVerbVirtScreen were appropriate; removed unused param from initVirtScreen
svn-id: r17828
2005-04-26 15:52:55 +00:00
Max Horn
e811cb091b Perform some clipping (some old savegames had bad usage bits in the same and caused a crash for me due to lack of clipping)
svn-id: r17814
2005-04-26 13:16:02 +00:00
Max Horn
d2624d8e08 cleanup
svn-id: r17718
2005-04-20 19:59:18 +00:00
Max Horn
c46ea8bc40 Replaced the platform specific GF_FOO switches (using _platform instead now)
svn-id: r17716
2005-04-20 18:21:30 +00:00
Travis Howell
2009b72679 Replace all GF_HUMONGOUS use with _heversion.
Make HE60 specific to puttdemo, since it is unqie.
Other HE60 games changed to HE 61.

svn-id: r17698
2005-04-20 01:33:44 +00:00
Max Horn
3d5b5f2ad8 Moved createResource, resourceStats, expireResources to ResourceManager
svn-id: r17420
2005-04-06 17:31:35 +00:00
Travis Howell
8efb9961d6 Use dirtybit
svn-id: r17417
2005-04-06 15:09:51 +00:00
Eugene Sandulenko
13e18e4801 Fix parens. Spotted by Quietust.
svn-id: r17403
2005-04-05 23:30:35 +00:00
Travis Howell
b399a052f1 Fixed long ago...
svn-id: r17387
2005-04-05 14:45:02 +00:00
Torbjörn Andersson
23e4199699 Clear the text surface when loading a saved game, otherwise any text that
was displayed before loading the game will remain.

I hope this is the correct fix.

svn-id: r17382
2005-04-05 07:53:46 +00:00
Travis Howell
b5f281e9d8 Cleanup
svn-id: r17333
2005-04-02 14:24:43 +00:00
Eugene Sandulenko
9c68b29a05 Normalize verb/invenotry areas in MM NES. Patch from Quietust
svn-id: r17316
2005-04-01 01:41:20 +00:00
Max Horn
ac247c9b94 Started to move some resource related code into a new class ResourceManager (hypothetic goal for the future: use ResourceManager in ScummEx)
svn-id: r17311
2005-03-31 21:39:31 +00:00
Max Horn
9ca1a88803 Moved NES stuff in class Gdi into a struct _NES
svn-id: r17278
2005-03-28 20:27:12 +00:00
Max Horn
c5a77afb01 Cleaned up the object mode code; removed the friend class ScummEngine from class Gdi; moved dither code to ScummEngine
svn-id: r17277
2005-03-28 20:18:36 +00:00
Travis Howell
2938c66276 Rename WizParameters field.
Correct start strip in drawBMAPBg()

svn-id: r17236
2005-03-26 06:00:58 +00:00
Eugene Sandulenko
f735ee48af Fixes for MM NES costume mask from Quietust.
svn-id: r17235
2005-03-26 03:49:06 +00:00
Eugene Sandulenko
1805fe7686 Accidentally commented out NES palette changing code. Fixing that.
svn-id: r17233
2005-03-25 22:25:40 +00:00
Eugene Sandulenko
a9c2e6ecbf MM NES fixes:
o Fixed crash when in-game GUI was displayed
  o Support for save/load
  o Savegame version bumped

svn-id: r17232
2005-03-25 22:11:08 +00:00
Max Horn
df129b198c Some more cleanup
svn-id: r17227
2005-03-25 01:59:47 +00:00
Max Horn
47ee0ce884 Moved _roomStrips to class Gdi; put some GFX pre-room init code into the new method Gdi::roomChanged(); some more cleanup
svn-id: r17226
2005-03-25 01:52:20 +00:00
Max Horn
c86b18716b Started some cleanup work on class Gdi (in particular, I try to limit that class to GFX decoding only, and moved the screen rendering code out of it)
svn-id: r17225
2005-03-25 01:27:28 +00:00
Max Horn
7ed1c19f6c Cleanup: collect the C64 specific render data into a struct inside class Gdi
svn-id: r17224
2005-03-25 00:56:03 +00:00
Eugene Sandulenko
33952c09cb Correct positioning of inventory and verbs in MM NES.
Started to tackle inventory.

svn-id: r17219
2005-03-24 21:34:35 +00:00
Eugene Sandulenko
166e009061 First attempt to position NES graphics correctly on screen. Still verbs
are at wrong places.

svn-id: r17217
2005-03-24 04:53:28 +00:00
Eugene Sandulenko
9ab0962f6d Lots of MM NES changes from Quietust and me
o Swap palette entries 0x00 and 0x1D in all necessary places. This gets
    rid of gray background
  o added a function NES_loadCostumeSet(int n) in order to do #1 for sprites
  o Widen screen to 256 pixels and center narrow rooms in it
  o Partial fix for subtitle rendering, now at least first line is
    rendered with identation

svn-id: r17212
2005-03-24 03:22:32 +00:00
Torbjörn Andersson
fb87ff059d Removed unused variable.
svn-id: r17207
2005-03-23 14:34:22 +00:00
Eugene Sandulenko
df0869f51d Patch from Quietust for MM NES
o objects now update tile colors and mask data
  o mask data is drawn from the correct offset
  o verbs are drawn in the correct color

svn-id: r17199
2005-03-22 21:07:00 +00:00
Eugene Sandulenko
0bcb0ac257 Many MM NES fixes/improvements from Quietust:
o Doesn't crash when going upstairs. Now game is playable up to
    the green tentacle
  o Proper subtitles colors
  o Room mask is decoded but doesn't affect sprites yet
  o Inventory draw issues fixed
  o Fix actors position when they're facing right

svn-id: r17191
2005-03-21 23:51:48 +00:00
Eugene Sandulenko
11a1f9bb00 NES palette fixes from Quietust.
Some fixes of gray background for NES. Though maybe proper approach
would be to add global vars instead of checking every time.

svn-id: r17190
2005-03-21 01:15:30 +00:00
Eugene Sandulenko
d1e46a5420 Implement proper scene transition mode for MM NES.
svn-id: r17189
2005-03-21 00:27:39 +00:00
Eugene Sandulenko
f86768fee8 Preliminary support for NES charsets. Colors are wrong and we get glitches
caused by too narrow screen. Also text clearing doesn't work.

svn-id: r17164
2005-03-16 03:20:32 +00:00
Eugene Sandulenko
a827bb1c05 Patch from Quietust. Proper drawing of objects and fixes to inventory.
svn-id: r17162
2005-03-16 02:14:35 +00:00
Max Horn
6e33b3f0a7 Some cleanup/costume code unification. Note: NES costume code probably should be using subclasses; and maybe we should add AKOSLoadedCostume and NESLoadedCostume ?
svn-id: r17161
2005-03-15 21:48:06 +00:00
Eugene Sandulenko
b8ee09d21b Properly wipe out animation trails in MM NES. It appeared that it
just uses different constants for VAR_CURRENT_LIGHTS. So now it
uses proper double buffering as well

svn-id: r17159
2005-03-15 21:15:37 +00:00
Eugene Sandulenko
4824af64bb Minor NES-related fixes
o Actors do not leave trails, though background isn't restored since
    that code always uses two buffers and nes isn't. I have to switch it to
    use two
  o Add Swedish version of MM NES
  o Code formatting fixes

svn-id: r17156
2005-03-15 17:56:50 +00:00
Paweł Kołodziejski
b23aaf98fe fixed compilation for emsvc4
svn-id: r17150
2005-03-15 08:21:48 +00:00
Travis Howell
6974025542 Patch from Quietust:
Animated costumes for NES maniac.

svn-id: r17145
2005-03-15 04:05:15 +00:00
Torbjörn Andersson
10f21cfe2c Fixed GCC warning about unused variables.
svn-id: r17135
2005-03-14 11:46:10 +00:00
Eugene Sandulenko
654528422d Preliminary support for MM NES.
svn-id: r17133
2005-03-13 23:18:59 +00:00
Chris Apers
d27f4116f4 Cleanup
svn-id: r17080
2005-03-11 11:06:45 +00:00
Max Horn
d414c78468 Stricter offset verification in drawBitmap; but be more generous if we encounter a violation and just generate a warning (should fix bug #795214)
svn-id: r17053
2005-03-09 21:10:16 +00:00
Max Horn
68dce52387 Fix for bug #1107815 (SAM: Conroy Bumpus' song subtitles always present)
svn-id: r17017
2005-03-06 23:36:37 +00:00
Travis Howell
81262457d3 Add extra safety checks from original games, to copyVirtScreenBuffers()
svn-id: r16993
2005-03-06 00:46:13 +00:00