aboutsummaryrefslogtreecommitdiff
path: root/engines/made/scriptfuncs.cpp
AgeCommit message (Collapse)Author
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
2008-04-21Removed Functor2 class definition.Benjamin Haisch
svn-id: r31639
2008-04-20Catch EVENT_QUIT events, too. I realize that g_system->quit() isn't the nicestTorbjörn Andersson
way to quit a game, but it beats not being able to quit at all. svn-id: r31617
2008-04-20Changed spaces to tabs.Torbjörn Andersson
svn-id: r31610
2008-04-20Initial import of the work in progress MADE engineFilippos Karapetis
svn-id: r31599