Commit Graph

54678 Commits

Author SHA1 Message Date
johndoe123
61e2a6f81d NEVERHOOD: Clean up Module2300 (like the ones before)
- Also fix previous modules (oops)
2013-05-08 20:47:35 +02:00
johndoe123
1993d4165a NEVERHOOD: Clean up Module2200 (like the ones before)
- Rename SceneInfo140 to HallOfRecordsInfo
2013-05-08 20:47:35 +02:00
johndoe123
0dd4995af3 NEVERHOOD: Clean up Module2100 (like the ones before) 2013-05-08 20:47:35 +02:00
johndoe123
9d987a97d3 NEVERHOOD: Clean up Module2000 (like the ones before) 2013-05-08 20:47:35 +02:00
johndoe123
2fbfd673ad NEVERHOOD: Clean up Module1900 (like the ones before) 2013-05-08 20:47:35 +02:00
johndoe123
dd26512c0d NEVERHOOD: Clean up Module1800 (like the ones before) 2013-05-08 20:47:35 +02:00
johndoe123
904d9430bf NEVERHOOD: Clean up Module1700 (like the ones before) 2013-05-08 20:47:35 +02:00
johndoe123
e2b696b891 NEVERHOOD: Clean up Module1600 (like the ones before)
- Remove AsScene1608Door because the corresponding animation resource didn't exist!
2013-05-08 20:47:34 +02:00
johndoe123
f51140490d NEVERHOOD: Clean up Module1500 (like the ones before) 2013-05-08 20:47:34 +02:00
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
bf1371c9d4 NEVERHOOD: Rename and clean up fields in AnimFrameInfo 2013-05-08 20:47:34 +02:00
johndoe123
f24a6769c2 NEVERHOOD: Make use of NDrawRect::set 2013-05-08 20:47:33 +02:00
johndoe123
9ba7a7f1a1 NEVERHOOD: Rename stuff in Sprite:
- processDelta() to updateBounds()
- getRect() to getCollisionBounds()
- _drawRect to _drawOffset
- _rect to _collisionBounds
- _deltaRect to _collisionBoundsOffset
2013-05-08 20:47:33 +02:00
johndoe123
eb054471e0 NEVERHOOD: Fix _drawRects in AsScene1002Door and SsCommonPressButton 2013-05-08 20:47:33 +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
f8ff1cc12f NEVERHOOD: Add CreditsScene to Module1300 and Module1800 (played after the game end and after jumping into the hole...) 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
c43253bd6a NEVERHOOD: Implement CreditsScene 2013-05-08 20:47:32 +02:00
johndoe123
2e32b32808 NEVERHOOD: Start with the MenuModule 2013-05-08 20:47:32 +02:00
johndoe123
ef8f0215cf NEVERHOOD: Add GameVars::dumpVars() for debugging 2013-05-08 20:47:32 +02:00
johndoe123
126a306c89 NEVERHOOD: Some cleanup:
- Remove _name field from Entity (wasn't really maintained by me and
  became useless)
- Remove obsolete TODOs
- Add STICK_LAST_FRAME constant for better readability
- Remove commented out callbackList TODOs (these were so far never
  used with over 90% of the game implemented)
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
9b7354dacb NEVERHOOD: Fix mouse cursor visibility by starting out invisible when the Mouse object is created and hiding the cursor when it's destroyed 2013-05-08 20:47:32 +02:00
johndoe123
c7ad09c685 NEVERHOOD: Remove BaseSurface::addDirtyRect() which is obsolete as well 2013-05-08 20:47:32 +02:00
johndoe123
a6e9475a3f NEVERHOOD: Remove Scene::_surfaceFlag which also is obsolete now 2013-05-08 20:47:32 +02:00
johndoe123
a238f57805 NEVERHOOD: Remove DirtyBackground which became obsolete after the renderqueue stuff 2013-05-08 20:47:31 +02:00
johndoe123
4295991d19 NEVERHOOD: Use hardcoded values as width/height of several sprites (in the original the values were loaded from the entry's extData but since all values are constant anyway it shouldn't matter) 2013-05-08 20:47:31 +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
963b760076 NEVERHOOD: Remove TODOs concerning the original engine's debug code
- Add Scene1202 palette effect
- Add AsScene1405Tile sound panning
- Clean up some old comments
2013-05-08 20:47:31 +02:00
johndoe123
2c4f0b70fe NEVERHOOD: Add Entity::setSoundPan and use it in the DiskplayerScene 2013-05-08 20:47:31 +02:00
johndoe123
f5c7070ace NEVERHOOD: Add mouse cursor hiding/showing 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
676c7569f6 NEVERHOOD: Fix a very stupid bug in Scene::insertMouse433 2013-05-08 20:47:07 +02:00
johndoe123
a724e603da NEVERHOOD: Use CursorMan
- Only update entities according to the current frame rate but run the actual game loop at a faster rate so the mouse cursor movement doesn't get choppy
2013-05-08 20:47:07 +02:00
johndoe123
fa53c0cf83 NEVERHOOD: Work on the resource system:
- Remove unused stuff
- Shuffle some stuff around
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