aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs/script.cpp
AgeCommit message (Collapse)Author
2011-11-24TOLTECS: Save music in saved gamesFilippos Karapetis
Also, move all music resource related code into its own class
2011-11-20TOLTECS: Change the updateScreen() logic a bitTorbjörn Andersson
Updating the screen when getMillis() % 10 is 0 seems sub-optimal to me. It could be true several iterations in a row (shouldn't be harmful, since updateScreen is assumed to be cheap if the screen hasn't changed) or we could miss it every single time. Let's measure the time between updates instead, just to be safer.
2011-11-20TOLTECS: CleanupFilippos Karapetis
2011-11-20TOLTECS: Updated TODOFilippos Karapetis
- Updated locations where the animation hack is necessary - Fixed crashes on scene changes (with a TODO) - MIDI Music is always XMIDI - sfClearScreen() doesn't seem to be necessary
2011-11-20TOLTECS: Fixed music loopingFilippos Karapetis
2011-11-20TOLTECS: Code cleanupFilippos Karapetis
2011-11-20TOLTECS: Initial implementation for musicFilippos Karapetis
2011-11-20TOLTECS: The resource cache is now purged when changing roomsFilippos Karapetis
2011-11-20TOLTECS: Removed now uneeded c_str() call.David Turner
2011-11-20TOLTECS: Fix Compilation After Base Code Header Changes.David Turner
2011-11-20TOLTECS: Fix bugsBenjamin Haisch
- 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-20TOLTECS: Use CursorMan instead of OSystem for showMouseBenjamin Haisch
2011-11-20TOLTECS: Reduced header dependenciesFilippos Karapetis
2011-11-20TOLTECS: Reduced header dependenciesFilippos Karapetis
2011-11-20TOLTECS: - More work on the menu system, saving and loading from there is ↵Benjamin Haisch
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-20TOLTECS: - Undef menu test code (oops)Benjamin Haisch
- 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-20TOLTECS: - Implement kSupportsLoadingDuringStartupBenjamin Haisch
2011-11-20TOLTECS: - Hopefully fixed a bug in findRectAtPoint which causes the game to ↵Benjamin Haisch
crash before the first scene - sfHandleInput
2011-11-20TOLTECS: Fix compilation.Benjamin Haisch
2011-11-20TOLTECS: - Implemented playSoundAtPos and fixed sound panning (0 is center, ↵Benjamin Haisch
not 64 like in the original) - Minor cleanup
2011-11-20TOLTECS: Reworked the ArchiveReader and ResourceCache classes.Benjamin Haisch
ResourceCache needs more work since resources are never freed (which is bad).
2011-11-20TOLTECS: - Fixed sound playingBenjamin Haisch
- Renaming
2011-11-20TOLTECS: - Moved script functions out of the switch statement and into an arrayBenjamin Haisch
2011-11-20TOLTECS: - Fixed compilation after Fingolfin's latest series of commitsBenjamin Haisch
- 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-20TOLTECS: Silenced MSVC warningsFilippos Karapetis
2011-11-20TOLTECS: - Implemented RTLBenjamin Haisch
- Fixed return values in savegame/loadgame - Some minor cleanup
2011-11-20TOLTECS: - Fixed Screen::updateTalkText (text x position was read ↵Benjamin Haisch
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-20TOLTECS: Implemented preliminary sound playback; some stuff is still missing ↵Benjamin Haisch
(correct volumes etc.)
2011-11-20TOLTECS: Removed unused functions.Benjamin Haisch
2011-11-20TOLTECS: Forgot script.cpp.Benjamin Haisch
And some tests for menu & movie player in toltecs.cpp.
2011-11-20TOLTECS: Fixed a script bug (compare opcodes work on unsigned values). So ↵Benjamin Haisch
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-20TOLTECS: - Merged input.cpp with toltecs.cppBenjamin Haisch
- Kernel function 5 returns a random value; use ScummVM's RNG
2011-11-20TOLTECS: Implemented buildColorTransTable (still TODO) and shadow sprite ↵Benjamin Haisch
drawing.
2011-11-20TOLTECS: Saving/loading is working; it still needs work but will suffice to ↵Benjamin Haisch
make debugging somewhat easier.
2011-11-20TOLTECS: - Renamed stuff and cleanupsBenjamin Haisch
- Beginnings of the saveload system (incomplete)
2011-11-20TOLTECS: - Renamed some variables & functionsBenjamin Haisch
- Mouse cursor is hidden/shown when _mouseDisabled variable is set via script
2011-11-20TOLTECS: Fixed tabs and formatting.Benjamin Haisch
2011-11-20TOLTECS: Initial checkinEugene Sandulenko