337 Commits

Author SHA1 Message Date
Travis Howell
43a5aff7bc Correct subtitle colors in C64 maniac.
svn-id: r18180
2005-05-19 01:54:37 +00:00
Eugene Sandulenko
cba94db699 Add C64 palette.
Fix Zak C64. Now it is playable.

svn-id: r18148
2005-05-18 00:46:30 +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
7b93b0e079 Moved v2 verb code into class ScummEngine_v2
svn-id: r17725
2005-04-20 23:53:29 +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
Max Horn
871e278f8b Reduce dependencies on scumm/util.h; modified ScummNESFile a bit so that it complies a bit better with our code formatting rules
svn-id: r17508
2005-04-10 12:59:17 +00:00
Eugene Sandulenko
582c56c236 Do not hardcode character translation tables and verbs prepositions
in MM NES but extract it directly from ROM. Patch from Quietust

svn-id: r17505
2005-04-10 09:58:37 +00:00
Eugene Sandulenko
ba3077ed0e Patch from Quietust:
1. properly handle costume colors in dark rooms (verified against disasm)
2. optimize NES audio generation a little bit - instead of calling a function ~80 times to get one audio sample, it calls it once and just loops ~80 times internally
3. NES audio now obeys the volume control
4. in MM NES, o2_setObjPreposition is a no-op
5. o2_lights uses new-style light values (i.e. bitfields) in MM NES
6. o2_delay, use ssPaused identifier rather than a literal '1'
7. in MM NES, o5_saveLoadGame only explicitly checks for type '1' (load), defaulting to save for any other value

svn-id: r17443
2005-04-07 21:13:01 +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
Eugene Sandulenko
dbfeb393aa Patch from Quietust for MM NES
o Fix number of global objects
 o Camera-related differences
 o Proper user states
 o Updated MD5 for new 00.lfl

svn-id: r17268
2005-03-27 21:21:05 +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
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
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
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
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
Travis Howell
af87d515f5 Fix verbs position in NES maniac for now.
svn-id: r17146
2005-03-15 04:16:25 +00:00
Eugene Sandulenko
654528422d Preliminary support for MM NES.
svn-id: r17133
2005-03-13 23:18:59 +00:00
Eugene Sandulenko
154c4af8dc Mass-renamed all variables of Actor object according to our current code
formatting standards. Earlier we had half of vars named with leading
underscore and half without it.

Now code in actor.cpp is considerably more readable.

svn-id: r17068
2005-03-11 01:10:06 +00:00
Max Horn
47280d9433 Updated copyright
svn-id: r16398
2005-01-01 16:09:25 +00:00
Torbjörn Andersson
5f7f3dc0d2 Whitespace
svn-id: r15647
2004-10-22 10:25:56 +00:00
Chris Apers
1ac29aae1e Help PalmOS (and more ?) to save memory
svn-id: r15611
2004-10-19 12:30:42 +00:00
Max Horn
42863d5cc2 cleanup / updated some comments
svn-id: r15524
2004-10-11 22:27:26 +00:00
Max Horn
6a50ba2308 Changed more of the actor class members to match our coding guidelines (in the future, when adding new member vars here, please always use our conventions, i.e. prefix them with _ and use CamelBackStyle
svn-id: r15331
2004-09-28 19:28:59 +00:00
Travis Howell
a13966d64c Switch to debug channel
svn-id: r14678
2004-08-22 09:30:08 +00:00
Max Horn
d35ef7c7f1 Removed some obsolete TODO comments
svn-id: r14669
2004-08-21 22:33:23 +00:00
Max Horn
15e3d8cbe3 whitespace
svn-id: r14600
2004-08-14 07:04:31 +00:00
Travis Howell
5c2a7a7775 Cleanup
svn-id: r14336
2004-07-26 13:53:24 +00:00
Max Horn
17fe0497f5 Renamed StringTab::backup to StringTab::_default, as that describes better what it does
svn-id: r13476
2004-04-05 23:54:58 +00:00
Max Horn
6aa6b49ed5 cleanup StringTab stuff
svn-id: r13448
2004-04-03 19:41:31 +00:00
Max Horn
faa12496e4 Fix for bug #893254 (MI1VGA: Changes in object names are not saved); this may introduce regressions, please report them (overall, this is a neat patch, it removes so many ugly hacks :-)
svn-id: r13325
2004-03-17 01:50:15 +00:00
Travis Howell
538e9a36ed Ooops
svn-id: r13303
2004-03-15 04:00:00 +00:00
Max Horn
ba5aa37dcc refactor use of _messagePtr -> instead of using it as an implicit parameter for various methods, pass its value explicitly to those methods. Note: this *should* be just a code transformation, with no change to the program logic - unless I messed up once again <sigh>
svn-id: r13298
2004-03-15 03:09:48 +00:00
James Brown
7000cb00e4 Forward-port maniac hack :)
svn-id: r13242
2004-03-13 12:55:40 +00:00
Travis Howell
fb1e289215 Add hack for demo script in maniac (Enchanced)
svn-id: r13174
2004-03-04 03:08:42 +00:00
Travis Howell
306d16441e Add back HE sound differences for AKOS.
Remove old define
Avoid crash if using demo script in maniac (Enchanced)

svn-id: r13166
2004-03-03 08:17:21 +00:00
Travis Howell
5feaf410c8 That should have been maniac specific.
svn-id: r13163
2004-03-03 03:14:22 +00:00
Travis Howell
84cb720df5 Adjustments for Enchanced Maniac Mansion demo.
svn-id: r13161
2004-03-03 02:53:12 +00:00
Travis Howell
a79a0647d7 Adjustments for Enchanced Maniac Mansion demo.
svn-id: r13160
2004-03-03 02:42:51 +00:00
Travis Howell
b2f6ed6f23 Add back hack
svn-id: r13007
2004-02-23 11:15:03 +00:00
Max Horn
179ad3b845 the code was still wrong
svn-id: r13005
2004-02-23 09:21:22 +00:00
Travis Howell
02eab2641d Ooops, missed a call.
svn-id: r13000
2004-02-23 01:10:05 +00:00
Travis Howell
3fb6d8e63d Is used in maniac and zak.
svn-id: r12992
2004-02-22 16:31:12 +00:00
Travis Howell
371cfa810f This should fix zak lotto bug correctly.
svn-id: r12989
2004-02-22 16:08:13 +00:00
Max Horn
ac8243d229 use Rect in struct VerbSlot
svn-id: r12413
2004-01-15 19:25:17 +00:00
Max Horn
7237b6a2ec changed the name of the former removeObjectFromRoom yet again, to markObjectRectAsDirty - that describes its functionality more accurately, I hope :-)
svn-id: r12326
2004-01-11 20:42:40 +00:00
Max Horn
0712cb95af renamed removeObjectFromRoom to forceObjectRedraw
svn-id: r12325
2004-01-11 20:15:05 +00:00