Nicola Mettifogo
|
d5d4500b64
|
* Enlarged buffer for frame decoding. Crashes in the introduction were caused by a small buffer and subsequent out-of-bound writes.
* Disabled debug code.
svn-id: r34046
|
2008-08-20 03:36:49 +00:00 |
|
Nicola Mettifogo
|
86c3ddc23c
|
Deleted debug code that slipped in.
svn-id: r34041
|
2008-08-19 14:36:05 +00:00 |
|
Nicola Mettifogo
|
389575b5c1
|
Fixed bug in low-level parser. Block comments weren't interpreted correctly.
svn-id: r34038
|
2008-08-19 14:07:48 +00:00 |
|
Nicola Mettifogo
|
c528106b86
|
Fixed segfault when quitting BRA.
svn-id: r34022
|
2008-08-19 08:08:32 +00:00 |
|
Nicola Mettifogo
|
c2089be660
|
* Split up blt routine (there is room for a ton of improvements)
* Added scaling as a new blt option
* Activated scaling for the main character in BRA
svn-id: r33985
|
2008-08-18 07:12:05 +00:00 |
|
Nicola Mettifogo
|
fbc9483ed2
|
Extended balloon manager to handle color constants and fixed color of text in balloons for BRA.
svn-id: r33940
|
2008-08-16 13:10:54 +00:00 |
|
Nicola Mettifogo
|
b08a3885a8
|
Multiple balloons (answers) are now positioned correctly in BRA.
svn-id: r33939
|
2008-08-16 12:49:27 +00:00 |
|
Torbjörn Andersson
|
49aff727e2
|
Removed unused variable.
svn-id: r33936
|
2008-08-16 11:50:36 +00:00 |
|
Nicola Mettifogo
|
41a1763fa8
|
Fixed half-invisible balloons.
svn-id: r33933
|
2008-08-16 08:57:07 +00:00 |
|
Nicola Mettifogo
|
5e912f6a90
|
Enabled interaction with movable zones - mainly NPCs - which are linked to animations.
svn-id: r33930
|
2008-08-16 07:47:44 +00:00 |
|
Nicola Mettifogo
|
797a5e7035
|
Fixed label positioning in BRA.
svn-id: r33928
|
2008-08-16 06:39:58 +00:00 |
|
Nicola Mettifogo
|
7891e5afce
|
Implemented raster operation for masks and postponed blitting of zones after everything in the location has been loaded. This fixes the remaining problems with animations not being masked by items.
svn-id: r33903
|
2008-08-15 15:08:08 +00:00 |
|
Nicola Mettifogo
|
05a021fd95
|
Added routines to load and handle item masks: animation are now correctly hidden when they are behind any object. The masks of items that are not explicitly activated (even if visible) still are handled (e.g. the crown in the museum is not visible in the foreground).
svn-id: r33900
|
2008-08-15 14:25:43 +00:00 |
|
Nicola Mettifogo
|
22eaffcb34
|
Updated layer calculation: animations are now hidden properly by background elements (but not items yet).
svn-id: r33894
|
2008-08-15 08:44:41 +00:00 |
|
Nicola Mettifogo
|
0606fef24e
|
Made coordinates and frame number protected into Zone and Animation, and changed client code to use get/set. This will allow various simplifications (e.g. when calculating Z), and is a step towards correct handling of interactive zones of Zone/Animation in BRA.
svn-id: r33892
|
2008-08-15 04:30:45 +00:00 |
|
Nicola Mettifogo
|
c70d09bc26
|
Made scripts access Animation fields via accessors and mutators, instead of using raw pointers.
svn-id: r33891
|
2008-08-15 03:59:45 +00:00 |
|
Nicola Mettifogo
|
2679f6ce7a
|
Disabled lip syncing code in BRA, since I couldn't find any scripts actually using it. Some warnings have been added as a sentinel.
svn-id: r33890
|
2008-08-15 03:36:01 +00:00 |
|
Nicola Mettifogo
|
ea2a2cbb7c
|
Simplified handling of script variables (especially locals).
svn-id: r33889
|
2008-08-15 02:52:42 +00:00 |
|
Nicola Mettifogo
|
d3440f2cc5
|
Some variable renamed to make more sense.
svn-id: r33864
|
2008-08-14 13:45:32 +00:00 |
|
Nicola Mettifogo
|
15f4bc43cf
|
More cleanup.
svn-id: r33861
|
2008-08-14 10:24:39 +00:00 |
|
Nicola Mettifogo
|
4447be7102
|
Cleanup.
svn-id: r33860
|
2008-08-14 10:04:43 +00:00 |
|
Nicola Mettifogo
|
5cfa50f028
|
Finally moved parseNextToken to Script, where it belongs!
svn-id: r33859
|
2008-08-14 07:14:34 +00:00 |
|
Nicola Mettifogo
|
4a46c99026
|
Removed cross-references between the general parser and the text formatter. To achieve this, I have rewritten the latter for both NS and BRA.
svn-id: r33858
|
2008-08-14 07:10:42 +00:00 |
|
Nicola Mettifogo
|
c349a8dcd9
|
* Increasing max number of allowed token on one line.
* Increasing buffer size to match old parser.
svn-id: r33512
|
2008-08-02 03:19:45 +00:00 |
|
Nicola Mettifogo
|
86079c20f5
|
Fixed issues detected by DrMcCoy's obnoxious compiler. ;)
svn-id: r33511
|
2008-08-02 02:43:05 +00:00 |
|
Nicola Mettifogo
|
3ec28ce42c
|
Removed debug code I forgot a long time ago ;)
svn-id: r33510
|
2008-08-02 02:26:09 +00:00 |
|
Nicola Mettifogo
|
15aada52c4
|
* Added a preprocessor to deal with the crappy location scripts in BRA.
* Added some comments on how the parser and related code should be changed to make things smoother.
svn-id: r33509
|
2008-08-02 02:24:36 +00:00 |
|
Nicola Mettifogo
|
f5b7004fae
|
* Removed references to the current _backgroundInfo from parser code.
* Re-enabled masks (in BRA DOS).
svn-id: r33474
|
2008-07-31 15:15:42 +00:00 |
|
Nicola Mettifogo
|
0679889d98
|
Disabled masks in BRA Amiga, because the decoding is not known yet.
svn-id: r33473
|
2008-07-31 14:20:51 +00:00 |
|
Nicola Mettifogo
|
6ed4beb1bf
|
Made changing of background more flexible, in that the engine can now configure its BackgroundInfo before passing it to Gfx.
svn-id: r33469
|
2008-07-31 12:50:43 +00:00 |
|
Nicola Mettifogo
|
591973c827
|
Changed Gfx::_backgroundInfo to be a pointer. This temporarily kills all z-buffering.
svn-id: r33468
|
2008-07-31 12:26:12 +00:00 |
|
Nicola Mettifogo
|
538fdcc61a
|
Set correct font for dialogues in BRA Amiga.
svn-id: r33467
|
2008-07-31 11:29:37 +00:00 |
|
Nicola Mettifogo
|
3dbeeaf8a1
|
* Unified implementation of flow control opcodes in NS and BRA
* Simplified script execution loop and context
svn-id: r33437
|
2008-07-30 07:58:25 +00:00 |
|
Nicola Mettifogo
|
8bdbbaf413
|
Reordered initialization lists to silence warning.
svn-id: r33432
|
2008-07-30 06:25:17 +00:00 |
|
Nicola Mettifogo
|
f46ee2b70c
|
* Implemented pause/resume of command execution
* Implemented command opcode MOVE (not the script instruction).
svn-id: r33408
|
2008-07-29 12:59:55 +00:00 |
|
Nicola Mettifogo
|
f31cf5d94c
|
* Added flexible verb configuration for both NS and BRA.
* Objects can now be really opened and closed in BRA.
svn-id: r33405
|
2008-07-29 10:22:50 +00:00 |
|
Nicola Mettifogo
|
884b753c73
|
Added dialogue text rendering for BRA.
svn-id: r33402
|
2008-07-29 09:44:05 +00:00 |
|
Travis Howell
|
598394e5b8
|
Mask files don't always exist in Amiga version of BRA, in paricular NULL.msk.
svn-id: r33394
|
2008-07-29 04:06:10 +00:00 |
|
Travis Howell
|
fd40cb4342
|
Add check common directories, in loadScenery() for Amiga version of BRA.
svn-id: r33393
|
2008-07-29 04:00:07 +00:00 |
|
Nicola Mettifogo
|
c8400e9725
|
* Fixed positioning of balloons and faces in BRA (dos, at least).
* Adapted loading of faces.
svn-id: r33392
|
2008-07-29 03:14:35 +00:00 |
|
Nicola Mettifogo
|
7baf727790
|
Enforcing use of nullZonePtr only for nulling out pointers, as it is useless for comparisons.
svn-id: r33384
|
2008-07-28 23:21:03 +00:00 |
|
Nicola Mettifogo
|
ec04a81e81
|
Yet another hack to deal with labels... Must rethink this crap from scratch.
svn-id: r33377
|
2008-07-28 14:23:49 +00:00 |
|
Nicola Mettifogo
|
30d943fe2f
|
Moved validation step from revision 33363, so that it is executed for all animations.
svn-id: r33376
|
2008-07-28 14:22:44 +00:00 |
|
Nicola Mettifogo
|
a5d225d438
|
Fixed loading of static items.
svn-id: r33375
|
2008-07-28 14:02:46 +00:00 |
|
Nicola Mettifogo
|
a1557bd776
|
Pick up/drop/open/close actions are now available in game.
svn-id: r33371
|
2008-07-28 11:50:36 +00:00 |
|
Nicola Mettifogo
|
fb388deb99
|
Implemented opcodes for picking up/dropping/opening/closing items.
svn-id: r33370
|
2008-07-28 11:48:04 +00:00 |
|
Nicola Mettifogo
|
f4ef55a2e5
|
Tiny readability aid for parser code.
svn-id: r33369
|
2008-07-28 11:47:03 +00:00 |
|
Nicola Mettifogo
|
5d2e25ee11
|
Preliminary code for traps.
svn-id: r33364
|
2008-07-28 09:00:00 +00:00 |
|
Nicola Mettifogo
|
c6cbf1f144
|
Added a post processing step to runScripts, so that Animation can be validated after buggy scripts have been executed.
svn-id: r33363
|
2008-07-28 08:56:37 +00:00 |
|
Travis Howell
|
b5a7735ffc
|
Correct character name set by character location parser.
svn-id: r33361
|
2008-07-28 08:44:14 +00:00 |
|