Max Horn
7140dda5e5
MADE: cleanup
...
svn-id: r41070
2009-05-31 15:07:55 +00:00
Johannes Schickel
b3c6751b9b
Strip trailing whitespaces in the whole code base.
...
svn-id: r40867
2009-05-24 15:17:42 +00:00
Filippos Karapetis
498a355a74
Reduced CPU usage of the MADE engine by about 10% (by profiling the code)
...
- 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-14 14:58:19 +00:00
Max Horn
f9ecd95d69
Whitespace cleanup: Convert space followed by tab to just tab
...
svn-id: r39203
2009-03-07 19:24:31 +00:00
Benjamin Haisch
22812367aa
- Fixed/completed cd audio support (sfPlayCd and sfGetCdTime) for Manhole:N&E and RtZ CD
...
svn-id: r36217
2009-02-04 19:15:12 +00:00
Filippos Karapetis
79709646fb
Added some unused opcodes in Rodney
...
svn-id: r36057
2009-01-25 10:46:48 +00:00
Filippos Karapetis
3fb9e1e23a
Added some information on sfPlayNote, sfStopNote, sfPlayTele, sfStopTele
...
svn-id: r36056
2009-01-25 10:16:00 +00:00
Benjamin Haisch
a8562cf64b
- Implemented sfGetMusicBeat (used in several games as some kind of timer)
...
svn-id: r36023
2009-01-23 12:17:12 +00:00
Benjamin Haisch
5b8105afb3
- Added support for The Manhole EGA version
...
- 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-22 13:04:29 +00:00
Filippos Karapetis
fa755b3729
Some updates/observations on script functions
...
svn-id: r35850
2009-01-13 21:08:22 +00:00
Filippos Karapetis
305954d34a
Save game headers are now verified
...
svn-id: r35848
2009-01-13 19:29:55 +00:00
Benjamin Haisch
78776638d3
Reworked the sound energy code
...
svn-id: r35845
2009-01-13 16:18:22 +00:00
Filippos Karapetis
c2db2b91a5
- Music now works in LGoP2
...
- 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-13 10:11:52 +00:00
Filippos Karapetis
ef78bbdf0d
The sound energy buffer is now cleared inside decompressSound()
...
svn-id: r35753
2009-01-06 13:09:16 +00:00
Filippos Karapetis
de7721c638
Sound energy values are now stored in a list, to account for the fact that the original decompressed sounds on the fly, but we're decompressing them when the sound is being loaded
...
svn-id: r35752
2009-01-06 12:33:59 +00:00
Paul Gilbert
e2463f77cd
Changed sfGetSoundEnergy to use the correct soundEnergy value from decompressing sounds for proper lip-sync
...
svn-id: r35751
2009-01-06 10:40:38 +00:00
Eugene Sandulenko
696897b058
Whoa! Removing trailing spaces.
...
svn-id: r35648
2009-01-01 15:06:43 +00:00
Benjamin Haisch
99f8add65c
- Declared all stack functions as inline
...
- 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-10-04 21:40:14 +00:00
Benjamin Haisch
cea848303b
Return 32000 in sfGetCdTime instead of 0; this fixes the Manhole intro/credits (until the function is actually implemented)
...
svn-id: r34671
2008-09-28 20:02:01 +00:00
Benjamin Haisch
7bceafb3f2
- Fixed sprite drawing in Rodney's Funscreen
...
- 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-18 11:01:51 +00:00
Benjamin Haisch
fb31c62ad8
- Added support for Rodney's Fun Screen
...
- Added audio cd playback (still kinda broken though)
- Renamed getObjectPropertyPtr to findObjectProperty
svn-id: r32669
2008-06-12 11:09:04 +00:00
Benjamin Haisch
b9776d46b2
- Implemented opcodes: sfHomeText, sfDrawAnimPic
...
- Comments on unneeded opcodes
- Simplified getting/setting strings in Objects
svn-id: r32361
2008-05-29 12:57:11 +00:00
Benjamin Haisch
4afd19ad0f
Fixed premature stopping of sounds/voices.
...
svn-id: r32354
2008-05-28 22:15:10 +00:00
Benjamin Haisch
aa02a6758a
- Hopefully fixed 'responsiveness' of the mouse cursor/event handling
...
- 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-26 07:27:46 +00:00
Benjamin Haisch
4074d49844
- Moved event polling from sfPollEvent to runScript
...
- LGOP2: Fixed problem where Barth's gun was drawn at the wrong position
svn-id: r32205
2008-05-21 10:07:33 +00:00
Benjamin Haisch
828a217a03
- Implemented "stand-alone" script dumper/disassembler; it can be enabled by 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-20 20:00:10 +00:00
Benjamin Haisch
520af7d4bb
RtZ: Fixed a bug where sounds were cut off prematurely.
...
svn-id: r32188
2008-05-19 21:32:37 +00:00
Filippos Karapetis
e279d9693a
Some comments to opcodes sfGetMusicBeat and sfSetTextRect
...
svn-id: r32123
2008-05-14 20:12:58 +00:00
Benjamin Haisch
4a0b936495
Merged the three ScriptFunctionsXXX classes into ScriptFunctions
...
svn-id: r32105
2008-05-14 11:19:31 +00:00
Filippos Karapetis
c3bdf1c75f
Removed obsolete file
...
svn-id: r32101
2008-05-14 07:17:27 +00:00
Max Horn
8da048a468
Fix warnings
...
svn-id: r31829
2008-05-02 16:41:54 +00:00
Benjamin Haisch
7509d66caf
Implemented savegame loading/saving and sprite clipping
...
Fixed bug in Screen::printTextEx
Implemented opcodes:
- o1_DRAWTEXT
- o1_DRAWMENU
- o1_MENUCOUNT
- o1_SAVEGAME
- o1_LOADGAME
- o1_GAMENAME
svn-id: r31794
2008-04-30 20:36:19 +00:00
Benjamin Haisch
9605e28f7b
Fixed bug in o1_READMENU where an incorrect string length was returned.
...
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-29 21:56:13 +00:00
Max Horn
01dcd766af
Fix warning
...
svn-id: r31778
2008-04-29 21:27:16 +00:00
Benjamin Haisch
fc6fe46951
Implemented text drawing and cleanup.
...
svn-id: r31756
2008-04-28 10:56:21 +00:00
Filippos Karapetis
8b7486b5ca
Implemented opcodes o1_DROPSHADOW, o1_TEXTCOLOR, o1_OUTLINE. Added some initial code for opcode o1_TEXTRECT
...
svn-id: r31711
2008-04-24 23:06:21 +00:00
Filippos Karapetis
b861f38d10
Some initial code for font loading
...
Implemented opcode o1_LOADANIM
svn-id: r31698
2008-04-24 18:45:11 +00:00
Filippos Karapetis
9c4b451e1a
Unimplemented commands and opcodes throw a warning now
...
svn-id: r31693
2008-04-24 14:39:01 +00:00
Filippos Karapetis
e14746db3c
Slight cleanup to o1_PLAYSND
...
svn-id: r31684
2008-04-24 05:17:51 +00:00
Benjamin Haisch
efeb8a3193
Added (early) midi player code.
...
Added "screen flash" effect.
Implemented opcodes:
- o1_PLAYMUS
- o1_STOPMUS
- o1_ISMUS
- o1_FLASH
- o1_LOADSND
- o1_LOADMUS
svn-id: r31682
2008-04-23 23:22:02 +00:00
Benjamin Haisch
d0ad5867e0
Fixed palette issues when showing the inventory and the menu.
...
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-23 20:12:06 +00:00
Filippos Karapetis
b69ffa922a
In-game sound effects and voices should be working correctly now.
...
Implemented the following opcodes:
- o1_PLAYSND
- o1_ISSND
- o1_STOPSND
- o1_PLAYVOICE
- o1_SOUNDRATE
- o1_SETVOLUME
svn-id: r31666
2008-04-23 17:21:49 +00:00
Filippos Karapetis
b302ca9a7e
Implemented o1_EVENTKEY. Removed some debug delays
...
svn-id: r31655
2008-04-22 08:08:07 +00:00
Filippos Karapetis
f1a27858d5
Added palette locking and some wip sound playing code. Some cleanup
...
svn-id: r31654
2008-04-22 07:40:28 +00:00
Filippos Karapetis
54485c24c5
Some palette related fixes
...
svn-id: r31650
2008-04-21 20:20:34 +00:00
Benjamin Haisch
651bc3a278
Removed Functor2 class definition.
...
svn-id: r31639
2008-04-21 07:29:35 +00:00
Torbjörn Andersson
00a8c77527
Catch EVENT_QUIT events, too. I realize that g_system->quit() isn't the nicest
...
way to quit a game, but it beats not being able to quit at all.
svn-id: r31617
2008-04-20 16:18:50 +00:00
Torbjörn Andersson
7e07dd5ec7
Changed spaces to tabs.
...
svn-id: r31610
2008-04-20 15:36:40 +00:00
Filippos Karapetis
d0590a09ea
Initial import of the work in progress MADE engine
...
svn-id: r31599
2008-04-20 14:43:56 +00:00