Commit Graph

30 Commits

Author SHA1 Message Date
David Turner
9b885d0c50 TOLTECS: Removed now uneeded c_str() call. 2011-11-20 22:43:11 +01:00
David Turner
a3007d6e2a TOLTECS: Fix Compilation After Base Code Header Changes. 2011-11-20 22:43:10 +01:00
Benjamin Haisch
acd4d4098f TOLTECS: Fix bugs
- Save scene parameters before playing a movie and restore them afterwards (fixes crash)
- Fix text disappearing too fast
- Implement script function sfGetCameraChanged
- Replace nop script functions with stubs which print debug info when called
- Some cleanup, remove obsolete TODOs
2011-11-20 22:43:10 +01:00
Benjamin Haisch
581f0ba8b5 TOLTECS: Use CursorMan instead of OSystem for showMouse 2011-11-20 22:43:10 +01:00
Filippos Karapetis
4cc5934d84 TOLTECS: Reduced header dependencies 2011-11-20 22:43:10 +01:00
Filippos Karapetis
febda31f50 TOLTECS: Reduced header dependencies 2011-11-20 22:43:10 +01:00
Benjamin Haisch
1cb95f36e7 TOLTECS: - More work on the menu system, saving and loading from there is now possible
- Add blastSprite method which draws a sprite directly to the frontScreen without the renderQueue
- Add F10 scancode in sfHandleInput to open the menu
2011-11-20 22:43:10 +01:00
Benjamin Haisch
9698127c5d TOLTECS: - Undef menu test code (oops)
- Rename updateScreen to drawScreen
- Move code from sfUpdateScreen to engine updateScreen
- Use better screen sync code to get closer to the original game's speed
2011-11-20 22:43:10 +01:00
Benjamin Haisch
9c3a4bc055 TOLTECS: - Implement kSupportsLoadingDuringStartup 2011-11-20 22:43:10 +01:00
Benjamin Haisch
2acf1bf6f5 TOLTECS: - Hopefully fixed a bug in findRectAtPoint which causes the game to crash before the first scene
- sfHandleInput
2011-11-20 22:43:09 +01:00
Benjamin Haisch
3c49d36d5f TOLTECS: Fix compilation. 2011-11-20 22:43:08 +01:00
Benjamin Haisch
9a84c13bef TOLTECS: - Implemented playSoundAtPos and fixed sound panning (0 is center, not 64 like in the original)
- Minor cleanup
2011-11-20 22:43:08 +01:00
Benjamin Haisch
ce7febcd70 TOLTECS: Reworked the ArchiveReader and ResourceCache classes.
ResourceCache needs more work since resources are never freed (which is bad).
2011-11-20 22:43:07 +01:00
Benjamin Haisch
af7e1c1683 TOLTECS: - Fixed sound playing
- Renaming
2011-11-20 22:43:07 +01:00
Benjamin Haisch
eab360f3e7 TOLTECS: - Moved script functions out of the switch statement and into an array 2011-11-20 22:43:07 +01:00
Benjamin Haisch
2eb6482b06 TOLTECS: - Fixed compilation after Fingolfin's latest series of commits
- Added a warning for the yet unimplemented palette transparency code
- Removed "debug" calls from script, they weren't that useful
- Removed unneccessary delete in the MoviePlayer
- Fixed the renderer (hopefully?)
2011-11-20 22:43:07 +01:00
Filippos Karapetis
46257f7bb4 TOLTECS: Silenced MSVC warnings 2011-11-20 22:43:07 +01:00
Benjamin Haisch
1f4764ad1c TOLTECS: - Implemented RTL
- Fixed return values in savegame/loadgame
- Some minor cleanup
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
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
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
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
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
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