Benjamin Haisch
9e78b5d393
TOLTECS: - Listing savestates via command line or Launcher
...
- Loading/Saving during run time
Other savestate functions yet todo.
I'll probably remove the "original" in-game menu and move everything to the GMM.
2011-11-20 22:43:07 +01:00
Benjamin Haisch
47ae908589
TOLTECS: - Fixed Screen::updateTalkText (text x position was read incorrectly and font color wasn't nibble-swapped)
...
- Hooked up the movie player; movies can be aborted with Escape (not with mouse clicks at the moment because I was too lazy to implement it; funny, writing this explanation probably took longer :))
2011-11-20 22:43:07 +01:00
Benjamin Haisch
4b13982116
TOLTECS: Implemented preliminary sound playback; some stuff is still missing (correct volumes etc.)
2011-11-20 22:43:07 +01:00
Benjamin Haisch
f77960e81b
TOLTECS: Removed unused functions.
2011-11-20 22:43:07 +01:00
Eugene Sandulenko
beab4e3ca5
TOLTECS: Correct initialization for graphics. Since the game is 640x480, it should be
...
default to 1x scaler.
2011-11-20 22:43:07 +01:00
Benjamin Haisch
02e2b78e5c
TOLTECS: Added sound to the movie player (finally). Still TODO: Ability to abort movies.
2011-11-20 22:43:07 +01:00
Benjamin Haisch
3acd787145
TOLTECS: Updated TODO.txt
2011-11-20 22:43:06 +01:00
Benjamin Haisch
7b97e8cd93
TOLTECS: A lot of changes in the graphics code:
...
- Optimized drawing code; now only items (sprites, text, screen masks) which have changed from the previous frame are redrawn, this speeds up things a lot
- Implemented dirty rectangles using a microtile array
- The previously committed Microtile Array implementation from SEL seemed buggy so I wrote my own version which works nicely so far (and is less code and GPL), only MicroTileArray::getRectangles uses parts from the old version, this will be changed later
- One known bug related to dirty rectangles remains: Sometimes the background isn't restored correctly and gfx artifacts are visible
2011-11-20 22:43:06 +01:00
Benjamin Haisch
37a5f9e9ef
TOLTECS: Switched quicksave key from F6 to F5.
2011-11-20 22:43:06 +01:00
Benjamin Haisch
8f3e598f85
TOLTECS: Cleanup.
2011-11-20 22:43:06 +01:00
Benjamin Haisch
d299bbba01
TOLTECS: Changed how screen masks are handled.
...
At load time, a Surface is created for each screen mask, in which the gfx data from the background is copied.
This is the first step towards more optimized gfx rendering (more to come later).
2011-11-20 22:43:06 +01:00
Benjamin Haisch
150e555953
TOLTECS: Renamed ybottom to priority
2011-11-20 22:43:06 +01:00
Benjamin Haisch
ade8eec8cf
TOLTECS: Moved sprite drawing code to sprite.cpp
2011-11-20 22:43:06 +01:00
Benjamin Haisch
ca49ded9b3
TOLTECS: More changes to wrapGuiText
2011-11-20 22:43:06 +01:00
Benjamin Haisch
3c47914648
TOLTECS: Removed _tempString etc. and replaced it with GuiTextWrapState
2011-11-20 22:43:06 +01:00
Benjamin Haisch
3b89304dd9
TOLTECS: Forgot script.cpp.
...
And some tests for menu & movie player in toltecs.cpp.
2011-11-20 22:43:06 +01:00
Benjamin Haisch
d09fbbabe6
TOLTECS: - Added menu system prototype (may change later)
...
- Added movie player (still incomplete, sound is not yet implemented)
Both are not yet hooked to the engine.
- Added code for microtile arrays (from the SEL - Simple DirectMedia Layer Extension Library project), under the LGPL
This will be used as dirty rectangle "manager". This is experimental for now, it may be removed later.
2011-11-20 22:43:06 +01:00
Benjamin Haisch
20d60e6286
TOLTECS: Renamed some functions.
2011-11-20 22:43:06 +01:00
Benjamin Haisch
398d0daac0
TOLTECS: Adjust y position of talk text lines.
2011-11-20 22:43:06 +01:00
Benjamin Haisch
aaded0f546
TOLTECS: Added Screen::getTextWidth
2011-11-20 22:43:06 +01:00
Eugene Sandulenko
3eb449f236
TOLTECS: Add Russian version detection which works great.
2011-11-20 22:43:06 +01:00
Benjamin Haisch
be69bb986f
TOLTECS: Added TODO/NOTES/BUGS text
...
Also: The game is completable with this revision! (yay!:)
2011-11-20 22:43:06 +01:00
Benjamin Haisch
a94503765d
TOLTECS: - Fixed setDeltaPalette (sprites at night now look correct)
...
- Renamed TalkTextItem.rects/rectCount to lines/lineCount
- Workaround for font glitch in updateTalkText (text sets invalid font number)
2011-11-20 22:43:06 +01:00
Benjamin Haisch
6a83d7d851
TOLTECS: Cancel all talkText items when camera position is changed (fixes some crashes and odd behaviour)
2011-11-20 22:43:06 +01:00
Benjamin Haisch
367be5b345
TOLTECS: Merged text drawing routines into drawString
2011-11-20 22:43:06 +01:00
Benjamin Haisch
3c326b5c40
TOLTECS: Fixed bug in anim frame displaying.
2011-11-20 22:43:06 +01:00
Benjamin Haisch
bbf882016a
TOLTECS: Fixed text command parsing in updateVerbLine
2011-11-20 22:43:05 +01:00
Benjamin Haisch
b287588149
TOLTECS: Clear the text duration first in updateTalkText before adding text lines (else the durations add up and the text stays on screen a really long time)
2011-11-20 22:43:05 +01:00
Benjamin Haisch
2930003864
TOLTECS: Fixed a script bug (compare opcodes work on unsigned values). So far this caused one error I noticed when climbing up the ladder in the barn where the camera didn't scroll up properly, but now it's all fine.
2011-11-20 22:43:05 +01:00
Benjamin Haisch
e2b3a35486
TOLTECS: Corrected debug output.
2011-11-20 22:43:05 +01:00
Benjamin Haisch
59bbad2ac8
TOLTECS: Fixed clipping (the clipping of the right border with flipped sprites was buggy)
2011-11-20 22:43:05 +01:00
Benjamin Haisch
c82349c1b8
TOLTECS: Finished sprite clipping.
2011-11-20 22:43:05 +01:00
Benjamin Haisch
32d958508b
TOLTECS: Deleted obsolete files.
2011-11-20 22:43:05 +01:00
Benjamin Haisch
74c05f6aa8
TOLTECS: - Merged input.cpp with toltecs.cpp
...
- Kernel function 5 returns a random value; use ScummVM's RNG
2011-11-20 22:43:05 +01:00
Benjamin Haisch
5660ff5148
TOLTECS: Implemented buildColorTransTable (still TODO) and shadow sprite drawing.
2011-11-20 22:43:05 +01:00
Benjamin Haisch
98ac7885ac
TOLTECS: Merged drawChar and drawChar2
2011-11-20 22:43:05 +01:00
Benjamin Haisch
f0c9e489fe
TOLTECS: Minor cleanup.
2011-11-20 22:43:05 +01:00
Benjamin Haisch
d561cb7ae3
TOLTECS: Fixed tabs.
2011-11-20 22:43:05 +01:00
Benjamin Haisch
03cae51129
TOLTECS: - Made game "quittable"
...
- Save/load mouse position and if the cursor is enabled
2011-11-20 22:43:05 +01:00
Benjamin Haisch
51214a461a
TOLTECS: Saving/loading is working; it still needs work but will suffice to make debugging somewhat easier.
2011-11-20 22:43:05 +01:00
Benjamin Haisch
dd5567613f
TOLTECS: - Renamed stuff and cleanups
...
- Beginnings of the saveload system (incomplete)
2011-11-20 22:43:05 +01:00
Benjamin Haisch
21f6dad09a
TOLTECS: - Renamed some variables & functions
...
- Mouse cursor is hidden/shown when _mouseDisabled variable is set via script
2011-11-20 22:43:05 +01:00
Benjamin Haisch
0c3f2ab5d5
TOLTECS: Some cleanup of the pathfinding code.
2011-11-20 22:43:05 +01:00
Benjamin Haisch
f4e156b3b3
TOLTECS: Fixed tabs and formatting.
2011-11-20 22:43:05 +01:00
Eugene Sandulenko
7c2835313e
TOLTECS: Initial checkin
2011-11-20 22:43:05 +01:00