Commit Graph
177 Commits
Author SHA1 Message Date
johndoe123 af37a2200e NEVERHOOD: Clean up Module1400 (like the ones before) 2013-05-08 20:47:34 +02:00
johndoe123 ee7d47cb18 NEVERHOOD: Clean up Module1300 (like the ones before) 2013-05-08 20:47:34 +02:00
johndoe123 097f1f27bb NEVERHOOD: Clean up Module1200 (like the ones before) 2013-05-08 20:47:34 +02:00
johndoe123 f744e60e0e NEVERHOOD: Clean up Module1100:
- Rename stuff
- Remove superfluous braces
- Add a comment to the "which" code in each scene
- Use a seperate _sceneNum instead of _vm->gameState().sceneNum
2013-05-08 20:47:34 +02:00
johndoe123 4d7610f69d NEVERHOOD: Clean up Module1000:
- Rename stuff
- Remove superfluous braces
- Add a comment to the "which" code in each scene
- Use a seperate _sceneNum instead of _vm->gameState().sceneNum
- Remove code related to unused resource preloading and debug messages
2013-05-08 20:47:34 +02:00
johndoe123 1589e4fe7d NEVERHOOD: Add new method StaticSprite::loadSprite and use it instead of setting stuff "manually" 2013-05-08 20:47:34 +02:00
johndoe123 47994441cd NEVERHOOD: Move setting of debug variables to the GameModule 2013-05-08 20:47:33 +02:00
johndoe123 5af2de503e NEVERHOOD: Rewrite GameModule::initMemoryPuzzle() to use NonRepeatingRandomNumbers
- Change NonRepeatingRandomNumbers
2013-05-08 20:47:33 +02:00
johndoe123 54c83924ce NEVERHOOD: Add class NonRepeatingRandomNumbers
- Simplify GameModule::initKeySlotsPuzzle()
2013-05-08 20:47:33 +02:00
johndoe123 8d97f26cef NEVERHOOD: Fix AsScene2402Door animation 2013-05-08 20:47:33 +02:00
johndoe123 5ba8f2e9c8 NEVERHOOD: Add making of video to the main menu
- Clear render queue at each scene initiailization
- Fix mouse cursor visibility (again :)
- Fix SmackerScene screen clearing
2013-05-08 20:47:33 +02:00
johndoe123 2e32b32808 NEVERHOOD: Start with the MenuModule 2013-05-08 20:47:32 +02:00
johndoe123 533eb5d61d NEVERHOOD: Rename puzzle initialization methods and give them better names 2013-05-08 20:47:32 +02:00
johndoe123 c09c0b8998 NEVERHOOD: Implement an experimental "render queue" to only draw and update what's actually changed; it works surprisingly well so far and only needs a few more changes here and there 2013-05-08 20:47:31 +02:00
johndoe123 692edf40c7 NEVERHOOD: Try to give the AsCommonCar identifiers better names
- Implement AsCommonCar::updateSound()
- Fix a bug in Scene1608 (the Klaymen animation got stuck when trying to get back into the car)
2013-05-08 20:47:31 +02:00
johndoe123 682d15fce4 NEVERHOOD: Cleanup and fixes
- Implement GameModule::initScene2801Vars()
- Fix Scene1201::~Scene1201() which does some game logic stuff
- Rename some stuff
- Add more game variable constants
2013-05-08 20:47:07 +02:00
johndoe123 6df8fccf6b NEVERHOOD: Implement GameModule::createModuleByHash
This is used later when restoring savegames

- Rename V_RING5_PULLED to V_RADIO_ENABLED
- Implement Palette::fillBaseBlack and use it in Scene2803Small
- Fix Scene2802 (show disabled radio if it's not enabled)
2013-05-08 20:47:07 +02:00
johndoe123 9858705772 NEVERHOOD: Graphics related changes/fixes:
- Add BitmapFlags enum
- Merge unpackSpriteRle and unpackSpriteRleRepl
- Implement Y flipping in unpackSpriteRle
- Fix Y flipping in AsScene2804CrystalWaves
2013-05-08 20:47:07 +02:00
johndoe123 a80ec8c89c NEVERHOOD: Implement Module2900, the teleporter
- Also fix a related bug in Module2000 (teleporter appearing animation didn't play)
2013-05-08 20:47:06 +02:00
johndoe123 b8d939a94b NEVERHOOD: Implement Scene2802 (radio tuning scene)
- Handle mouse button up events
- Use the SmackerDecoder's rewind
- Implement SmackerPlayer::gotoFrame (slow but better than nothing)
2013-05-08 20:47:06 +02:00
johndoe123 111b6d32c6 NEVERHOOD: Fix Smacker framerate bug after the video decoder changes
- React to the space key which can skip some videos and navigation transitions
- Minor renaming in SmackerScene
2013-05-08 20:47:06 +02:00
johndoe123 2e7d100a6f NEVERHOOD: Replace most of the literal digits in get/setSubVar with constants 2013-05-08 20:47:06 +02:00
johndoe123 1539023834 NEVERHOOD: Use constants for the numbers in get/setGlobalVar
Now the code is much more readable

- Still TODO is to do the same with get/setSubVar
2013-05-08 20:44:40 +02:00
johndoe123 97ee348c2a NEVERHOOD: Rename stuff in DiskplayerScene
- Add SmackerPlayer::isDone()
- Fix puzzle key variable handling
- Update globalvars.txt
2013-05-08 20:44:40 +02:00
johndoe123 fd13b546a7 NEVERHOOD: Rename stuff in the Scene class and clean up a little
- Try to stay close to the actual frame rate
- Also use the Smacker frame rate when a video is playing to
  keep videos in sync with the audio
2013-05-08 20:44:40 +02:00
johndoe123 59901c5d13 NEVERHOOD: Rename stuff in Module3000
- Also change Scene1609::testVars
- Update globalvars.txt
2013-05-08 20:44:40 +02:00
johndoe123 016638bd9e NEVERHOOD: Rename stuff in Module2700
- Also fix the clipRect in Scene2701
2013-05-08 20:44:40 +02:00
johndoe123 5aee04b127 NEVERHOOD: Work on Module2800:
- Rename KmScene2803b to KmScene2803Small; Scene2803b to Scene2803Small
- Rename lots of stuff
2013-05-08 20:44:40 +02:00
johndoe123 fcbab80507 NEVERHOOD: Rename stuff in Module2700 (also in Module2500 which uses some of it) 2013-05-08 20:44:40 +02:00
johndoe123 1da6b95af9 NEVERHOOD: Work on Module2500:
- Remove Class541 and Class542 and instead use AsCommonIdleCarLower and AsCommonIdleCarFull
- Some renaming
2013-05-08 20:44:39 +02:00
johndoe123 4c421a09c8 NEVERHOOD: Add clipRects to all Klayman subclasses
- Rename stuff in Module2400
- Move some temp sprites from class scope to local scope in the respective constructors
2013-05-08 20:44:39 +02:00
johndoe123 483d76d635 NEVERHOOD: Enable/fixup navigation scene sound update code in several modules
- Rename some NavigationScene stuff
2013-05-08 20:44:39 +02:00
johndoe123 9b7bb71dd9 NEVERHOOD: Simplify code and rename things
- Add Module::createStaticScene to simplify creation of static scenes
  (and use it in the relevant places)
- Rename Class545 to AsCommonKey and rename related variables
- Rename stuff in Module2200
2013-05-08 20:43:48 +02:00
johndoe123 15cfb9f787 NEVERHOOD: Implement clipping against multiple clipRects, used only in several scenes for the Klayman sprite.
Currently only implemented in KmScene2201 for testing.
2013-05-08 20:43:48 +02:00
johndoe123 8a9ca493b6 NEVERHOOD: Rename stuff in several modules 2013-05-08 20:43:48 +02:00
johndoe123 2fa76ccca1 NEVERHOOD: Work on Module1700:
- Rename stuff
- Add puzzle var initialization in Scene1705
2013-05-08 20:43:47 +02:00
johndoe123 b320c9f5a0 NEVERHOOD: Work on Module1600:
- Rename stuff (also in related files)
2013-05-08 20:43:47 +02:00
johndoe123 eefa175a2f NEVERHOOD: Update todo.txt 2013-05-08 20:43:47 +02:00
johndoe123 81667d492a NEVERHOOD: Remove SsScene1002LadderArch and Class599 and turn them into static sprites; the classes were only used to set the sprite surface priority with a message, which is now handled in the scene 2013-05-08 20:43:46 +02:00
johndoe123 c88fdc34dd NEVERHOOD: Rename Class152 to StaticScene 2013-05-08 20:43:46 +02:00
johndoe123 5ab4eb6555 NEVERHOOD: Change sound stuff in Module1300
- Also fix a very stupid bug in AsScene1307Key which messed up the key moving animation
2013-05-08 20:43:44 +02:00
johndoe123 cce19001fd NEVERHOOD: Rename more Klayman stuff (not much left :) 2013-05-08 20:43:43 +02:00
johndoe123 a5986fd722 NEVERHOOD: Fix resource file reading by introducing SafeMutexedSeekableSubReadStream which locks a mutex during reads and also lock the same mutex in BlbArchive::load; loading resources while music is playing shouldn't mess up the file position now
- Fix loading of non-existent resources (not elegant and not checked everywhere yet, the resource system is subject to a minor rewrite anyway)
- Rename more Klayman stuff
2013-05-08 20:43:43 +02:00
johndoe123 8bdddfdb02 NEVERHOOD: Rename many Klayman functions/variables 2013-05-08 20:43:43 +02:00
johndoe123 f5a8c9d90d NEVERHOOD: Add most SoundMan remaining calls
Except for those which need a sound hash array (later)
2013-05-08 20:43:42 +02:00
johndoe123 fc0e40db30 NEVERHOOD: Implement the actual audio code
Sounds and music play now in some scenes
(I didn't change the comments to code in all modules yet)

- Fix calcHash to ignore non-alphanumeric characters, this fixes at least
  one animation glitch (when inserting tapes into the player)
- Move SoundResource to sound.cpp
2013-05-08 20:43:42 +02:00
johndoe123 0bb70c39f0 NEVERHOOD: More work on the SoundMan
- Also changed all sound related function calls which are still TODO to the new names
2013-05-08 20:43:42 +02:00
johndoe123 d1d1596fd1 NEVERHOOD: Add support for shadow sprites, used only for the shadow of the car/vehicle thing 2013-05-08 20:43:41 +02:00
johndoe123 1a581543a7 NEVERHOOD: Implement Scene2403 2013-05-08 20:43:41 +02:00
johndoe123 93614a17a8 NEVERHOOD: Implement Scene2406 2013-05-08 20:43:41 +02:00