Commit Graph

325 Commits

Author SHA1 Message Date
johndoe123
a80bafeb2e NEVERHOOD: Support game loading from launcher/command line 2013-05-08 20:47:43 +02:00
johndoe123
dc459b5f67 NEVERHOOD: Merge some code in the save/load menus 2013-05-08 20:47:43 +02:00
johndoe123
bdac28929f NEVERHOOD: Add Y-flipping to unpackSpriteNormal 2013-05-08 20:47:43 +02:00
johndoe123
70fdfd9d57 NEVERHOOD: Delete all sound/music items on exit
- Minor cleanup
2013-05-08 20:47:43 +02:00
johndoe123
c96d2475b1 NEVERHOOD: Add Screen::saveParams and Screen::restoreParams, called when etnering/leaving the menu 2013-05-08 20:47:42 +02:00
johndoe123
53a81d11b8 NEVERHOOD: Don't allow main menu until _canRequestMainMenu is set
- Clean up GameModule
2013-05-08 20:47:42 +02:00
johndoe123
65c6984635 NEVERHOOD: Implement game-internal savegame overwrite query screen
- Rename and reorder fields in the Klaymen class
2013-05-08 20:47:42 +02:00
johndoe123
9ae1888593 NEVERHOOD: Change Klaymen idle callbacks from method pointers to integers and evaluate these in a new method enterIdleAnimation 2013-05-08 20:47:42 +02:00
johndoe123
1383c5f395 NEVERHOOD: Rename stuff in the Klaymen class 2013-05-08 20:47:42 +02:00
johndoe123
c218cb46e0 NEVERHOOD: Remove unneeded braces 2013-05-08 20:47:42 +02:00
johndoe123
4c6e82fc05 NEVERHOOD: Remove objectPriority and surfacePriority parameters from the Klaymen class constructor since they always have the same value (1000) 2013-05-08 20:47:42 +02:00
johndoe123
379a8cbbe0 NEVERHOOD: Add support for loading/saving games with the game's own menu
- Add LoadGameMenu class
2013-05-08 20:47:42 +02:00
johndoe123
490d447ed1 NEVERHOOD: Implement restart functionality (from both main menu and game logic)
- Some minor cleanup
2013-05-08 20:47:42 +02:00
johndoe123
4389d32974 NEVERHOOD: Rename "Klayman" to "Klaymen" (the correct name of the game's hero) 2013-05-08 20:47:41 +02:00
johndoe123
ac1dc3e4db NEVERHOOD: Fix Module1300::createScene 2013-05-08 20:47:41 +02:00
johndoe123
5ff11f0041 NEVERHOOD: Rework the sound system
- Move code from the manager classes to the sound/music classes
2013-05-08 20:47:41 +02:00
johndoe123
e51bea9b4e NEVERHOOD: Don't load a DataResource if the same data is already loaded; this fixes a nasty bug in several scenes which use message lists from a DataResource 2013-05-08 20:47:40 +02:00
johndoe123
eea9dbe2da NEVERHOOD: Minor renaming and cleanup 2013-05-08 20:47:40 +02:00
johndoe123
51979c4f3f NEVERHOOD: Rename SceneInfo2700 to TrackInfo 2013-05-08 20:47:40 +02:00
johndoe123
5bf8fb3e96 NEVERHOOD: Remove more old TODOs 2013-05-08 20:47:40 +02:00
johndoe123
18ce1acc12 NEVERHOOD: Rework the car track scenes in Module2500 and Module2700
- Move findClosestTrack code from several scenes to new Tracks::findTrackPoint
- Remove const kScene2706 arrays and use it from the dat instead
2013-05-08 20:47:40 +02:00
johndoe123
e43184f4f2 NEVERHOOD: Remove obsolete TODOs 2013-05-08 20:47:40 +02:00
johndoe123
df43b8bd68 NEVERHOOD: Move Scene2804::initCrystalColors() to GameModule::initCrystalColorsPuzzle()
- Add Scene::isMessageList2, only used in Scene2101
2013-05-08 20:47:40 +02:00
johndoe123
f945448c7b NEVERHOOD: Change graphic resource draw method to get a Surface instead of separate pixels/pitch
- Merge SpriteResource::load and load2
2013-05-08 20:47:40 +02:00
johndoe123
57497817e1 NEVERHOOD: Add enum for the resource types 2013-05-08 20:47:40 +02:00
johndoe123
a98d9aa58a NEVERHOOD: Clean up DiskplayerScene
- Enable return to launcher
- Remove obsolete comments
- Remove braces in single-line statements
- Remove unused non-transparent drawing code in BaseSurface::copyFrom
- Clean up mouse cursor insertion code in Scene class
2013-05-08 20:47:39 +02:00
johndoe123
6ddedc955a NEVERHOOD: Merge TextSurface into FontSurface 2013-05-08 20:47:39 +02:00
johndoe123
fa205be892 NEVERHOOD: Remove some obsolete TODOs 2013-05-08 20:47:39 +02:00
johndoe123
b875696fc7 NEVERHOOD: Update todo.txt 2013-05-08 20:47:39 +02:00
johndoe123
9963ce41ea NEVERHOOD: Merge CollisionMan into Scene class 2013-05-08 20:47:39 +02:00
johndoe123
4b7ad48ca8 NEVERHOOD: Rename some CollisionMan methods/fields
- Remove fallback detector (I think it's not needed)
- Rename Scene insertMouse methods
2013-05-08 20:47:39 +02:00
johndoe123
fec1d7816a NEVERHOOD: Implement resource cache purging and purge it after each scene 2013-05-08 20:47:39 +02:00
johndoe123
30178e46e5 NEVERHOOD: Implement savegame loading via GMM (in-game saving/loading still TODO) 2013-05-08 20:47:39 +02:00
johndoe123
a35cd088e5 NEVERHOOD: Remove obsolete _keyState 2013-05-08 20:47:39 +02:00
johndoe123
0f1aa64fd0 NEVERHOOD: Add support for the demo version
- Remove debug resource dumping code
- Fix Scene1501 (pictures without sound weren't displayed/too fast)
- Move main loop to mainLoop method
2013-05-08 20:47:38 +02:00
johndoe123
060287a4f8 NEVERHOOD: Improve frame-exact seeking for Scene2802
Thanks to clone2727 for his help!
2013-05-08 20:47:38 +02:00
johndoe123
99e15e4005 NEVERHOOD: More work on saveload, saving works, loading not yet (from the GMM, in-game isn't finished yet) 2013-05-08 20:47:38 +02:00
johndoe123
c182688e44 NEVERHOOD: Add saveload skeleton (doesn't actually do anything yet) 2013-05-08 20:47:38 +02:00
johndoe123
9a1d9883ad NEVERHOOD: Fix AsCommonCar turning 2013-05-08 20:47:38 +02:00
johndoe123
b2934eb166 NEVERHOOD: Fix Klaymen "grow" animation after drinking the potion
- Remove static sprite 0x50C027A8 Scene2803/Scene2803Small because the resource doesn't exist!
- Remove some old comments
- Fix resource extData handling which fixes some crashes
- Enable reusing deleted sound/music slots in SoundMan (was disabled for debugging)
2013-05-08 20:47:38 +02:00
johndoe123
cc015e3d24 NEVERHOOD: Simplify resource loading
- Renamne and clean up
2013-05-08 20:47:38 +02:00
johndoe123
1b9807b312 NEVERHOOD: Remove more old comments
- Add the remaining idle stuff to Klayman
2013-05-08 20:47:38 +02:00
johndoe123
370f00e808 NEVERHOOD: New _sceneNum in Module2800
- Very slightly improved the speed in SmackerPlayer::gotoFrame()
2013-05-08 20:47:38 +02:00
johndoe123
325c85fc41 NEVERHOOD: Fix Klaymen in Scene1403 (*facepalm*) 2013-05-08 20:47:38 +02:00
johndoe123
1904e944c5 NEVERHOOD: Add initCubeSymbolsPuzzle
- Add microtiles to the screen update to eliminate overdraw
  (microtiles code taken from the Toltecs engine)
- Fix sprite dimensions in AsScene1402PuzzleBox which caused a crash
- Fix screen shaking in Scene1402
  (the puzzle box and bridge parts now shake along :)
- Use addSoundItem/addMusicItem in the SoundMan instead of
  directly using push_back on the resp. arrays
- Remove old code and comments
2013-05-08 20:47:37 +02:00
johndoe123
685ce4e312 NEVERHOOD: Add initCodeSymbolsPuzzle 2013-05-08 20:47:37 +02:00
johndoe123
73e0372cef NEVERHOOD: A little more work on the menu stuff 2013-05-08 20:47:37 +02:00
johndoe123
6be5c11713 NEVERHOOD: More work on the menu system:
- Add handling of ascii and system key input
- Fix TextSurface::drawChar()
- Pause audio when entering the menu, resume it again afterwards
- Add TextEditWidget
- Add SaveGameMenu (doesn't actually save anything yet and needs more work)
2013-05-08 20:47:37 +02:00
johndoe123
0022c57858 NEVERHOOD: Add SavegameListBox 2013-05-08 20:47:37 +02:00
johndoe123
eecd9b8b2a NEVERHOOD: Add TextLabelWidget (still doesn't do anything) 2013-05-08 20:47:37 +02:00