aboutsummaryrefslogtreecommitdiff
path: root/engines/made/scriptfuncs.cpp
AgeCommit message (Collapse)Author
2010-04-12AUDIO: Rename Mixer::playInputStream to playStreamMax Horn
svn-id: r48637
2010-01-25Strip trailing spaces/tabs.Johannes Schickel
svn-id: r47541
2010-01-11Improve support for negative Timestamps, and add + and - operatorsMax Horn
svn-id: r47244
2010-01-11MADE: Use Mixer::getElapsedTime and Audio::Timestamp instead of ↵Max Horn
Mixer::getSoundElapsedTime svn-id: r47243
2009-10-04Applied patch #2872409 "MADE engine fixes" by agent-q, with one small ↵Filippos Karapetis
modification (initialized _soundStarted in the ScriptFunctions constructor) svn-id: r44589
2009-05-31MADE: cleanupMax Horn
svn-id: r41070
2009-05-24Strip trailing whitespaces in the whole code base.Johannes Schickel
svn-id: r40867
2009-03-14Reduced CPU usage of the MADE engine by about 10% (by profiling the code)Filippos Karapetis
- Added delays in places where the screen gets updated - Moved event polling inside sfPollEvent() (cause that's where events are polled), instead of after each opcode svn-id: r39392
2009-03-07Whitespace cleanup: Convert space followed by tab to just tabMax Horn
svn-id: r39203
2009-02-04- Fixed/completed cd audio support (sfPlayCd and sfGetCdTime) for ↵Benjamin Haisch
Manhole:N&E and RtZ CD svn-id: r36217
2009-01-25Added some unused opcodes in RodneyFilippos Karapetis
svn-id: r36057
2009-01-25Added some information on sfPlayNote, sfStopNote, sfPlayTele, sfStopTeleFilippos Karapetis
svn-id: r36056
2009-01-23- Implemented sfGetMusicBeat (used in several games as some kind of timer)Benjamin Haisch
svn-id: r36023
2009-01-22- Added support for The Manhole EGA versionBenjamin Haisch
- Support for 'chunked' picture resources and EGA pictures - Improved the mouth sync in RtZ (still not perfect, though) - Removed obsolete TODOs - Fixed sfPlayMovie to return if the movie playback was aborted or not; this is used by RtZ to determine if it should display the credits screen after the intro movie svn-id: r35997
2009-01-13Some updates/observations on script functionsFilippos Karapetis
svn-id: r35850
2009-01-13Save game headers are now verifiedFilippos Karapetis
svn-id: r35848
2009-01-13Reworked the sound energy codeBenjamin Haisch
svn-id: r35845
2009-01-13- Music now works in LGoP2Filippos Karapetis
- Changed the default music volume to 127, down from 255 - Added an explanation/FIXME for the out of sync mouth animations in RTZ - Added some TODOs and removed some obsolete ones svn-id: r35843
2009-01-06The sound energy buffer is now cleared inside decompressSound()Filippos Karapetis
svn-id: r35753
2009-01-06Sound energy values are now stored in a list, to account for the fact that ↵Filippos Karapetis
the original decompressed sounds on the fly, but we're decompressing them when the sound is being loaded svn-id: r35752
2009-01-06Changed sfGetSoundEnergy to use the correct soundEnergy value from ↵Paul Gilbert
decompressing sounds for proper lip-sync svn-id: r35751
2009-01-01Whoa! Removing trailing spaces.Eugene Sandulenko
svn-id: r35648
2008-10-04- Declared all stack functions as inlineBenjamin Haisch
- Sleep some ms after 500 opcodes to reduce CPU load - Fixed odd bug in LGoP2 where text disappeared quickly without waiting for user input by returning 0x38 in sfShowPage svn-id: r34746
2008-09-28Return 32000 in sfGetCdTime instead of 0; this fixes the Manhole ↵Benjamin Haisch
intro/credits (until the function is actually implemented) svn-id: r34671
2008-06-18- Fixed sprite drawing in Rodney's FunscreenBenjamin Haisch
- Handle mouse button up events and event number fixes in MadeEngine::handleEvents() - Use milliseconds -> game ticks calculation based on Windows version of the original engine - "Rodney's Fun Screen" -> "Rodney's Funscreen" svn-id: r32731
2008-06-12- Added support for Rodney's Fun ScreenBenjamin Haisch
- Added audio cd playback (still kinda broken though) - Renamed getObjectPropertyPtr to findObjectProperty svn-id: r32669
2008-05-29- Implemented opcodes: sfHomeText, sfDrawAnimPicBenjamin Haisch
- Comments on unneeded opcodes - Simplified getting/setting strings in Objects svn-id: r32361
2008-05-28Fixed premature stopping of sounds/voices.Benjamin Haisch
svn-id: r32354
2008-05-26- Hopefully fixed 'responsiveness' of the mouse cursor/event handlingBenjamin Haisch
- Disabled auto dirty rects which caused major gfx problems - Added default mouse cursor for Manhole: N&E - Fixed sound rate for Manhole: N&E - Don't automatically show mouse cursor when a new cursor was loaded svn-id: r32279
2008-05-21- Moved event polling from sfPollEvent to runScriptBenjamin Haisch
- LGOP2: Fixed problem where Barth's gun was drawn at the wrong position svn-id: r32205
2008-05-20- Implemented "stand-alone" script dumper/disassembler; it can be enabled by ↵Benjamin Haisch
defining DUMP_SCRIPTS in script.h and starting with at least debug level 1. - Commented which script opcodes and extended functions are actually used or not. svn-id: r32202
2008-05-19RtZ: Fixed a bug where sounds were cut off prematurely.Benjamin Haisch
svn-id: r32188
2008-05-14Some comments to opcodes sfGetMusicBeat and sfSetTextRectFilippos Karapetis
svn-id: r32123
2008-05-14Merged the three ScriptFunctionsXXX classes into ScriptFunctionsBenjamin Haisch
svn-id: r32105
2008-05-14Removed obsolete fileFilippos Karapetis
svn-id: r32101
2008-05-02Fix warningsMax Horn
svn-id: r31829
2008-04-30Implemented savegame loading/saving and sprite clippingBenjamin Haisch
Fixed bug in Screen::printTextEx Implemented opcodes: - o1_DRAWTEXT - o1_DRAWMENU - o1_MENUCOUNT - o1_SAVEGAME - o1_LOADGAME - o1_GAMENAME svn-id: r31794
2008-04-29Fixed bug in o1_READMENU where an incorrect string length was returned.Benjamin Haisch
Also fixed o1_EVENT to return the correct event number when a key was pressed and removed the debug code there. svn-id: r31781
2008-04-29Fix warningMax Horn
svn-id: r31778
2008-04-28Implemented text drawing and cleanup.Benjamin Haisch
svn-id: r31756
2008-04-24Implemented opcodes o1_DROPSHADOW, o1_TEXTCOLOR, o1_OUTLINE. Added some ↵Filippos Karapetis
initial code for opcode o1_TEXTRECT svn-id: r31711
2008-04-24Some initial code for font loadingFilippos Karapetis
Implemented opcode o1_LOADANIM svn-id: r31698
2008-04-24Unimplemented commands and opcodes throw a warning nowFilippos Karapetis
svn-id: r31693
2008-04-24Slight cleanup to o1_PLAYSNDFilippos Karapetis
svn-id: r31684
2008-04-23Added (early) midi player code.Benjamin Haisch
Added "screen flash" effect. Implemented opcodes: - o1_PLAYMUS - o1_STOPMUS - o1_ISMUS - o1_FLASH - o1_LOADSND - o1_LOADMUS svn-id: r31682
2008-04-23Fixed palette issues when showing the inventory and the menu.Benjamin Haisch
Moved drawing code from drawFlex/drawAnimFrame to drawSurface. Implemented opcodes: - o1_VISUALFX - o1_SCREENLOCK - o1_SETTIMER - o1_SETGROUND - o1_SETCLIP - o1_SETEXCLUDE svn-id: r31675
2008-04-23In-game sound effects and voices should be working correctly now.Filippos Karapetis
Implemented the following opcodes: - o1_PLAYSND - o1_ISSND - o1_STOPSND - o1_PLAYVOICE - o1_SOUNDRATE - o1_SETVOLUME svn-id: r31666
2008-04-22Implemented o1_EVENTKEY. Removed some debug delaysFilippos Karapetis
svn-id: r31655
2008-04-22Added palette locking and some wip sound playing code. Some cleanupFilippos Karapetis
svn-id: r31654
2008-04-21Some palette related fixesFilippos Karapetis
svn-id: r31650