Commit Graph

27 Commits

Author SHA1 Message Date
johndoe123
51979c4f3f NEVERHOOD: Rename SceneInfo2700 to TrackInfo 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
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
28e613c68b NEVERHOOD: Clean up Module2500 (like the ones before) 2013-05-08 20:47:35 +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
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
47994441cd NEVERHOOD: Move setting of debug variables to the GameModule 2013-05-08 20:47:33 +02:00
johndoe123
a6e9475a3f NEVERHOOD: Remove Scene::_surfaceFlag which also is obsolete now 2013-05-08 20:47:32 +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
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
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
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
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
b320c9f5a0 NEVERHOOD: Work on Module1600:
- Rename stuff (also in related files)
2013-05-08 20:43:47 +02:00
johndoe123
c88fdc34dd NEVERHOOD: Rename Class152 to StaticScene 2013-05-08 20:43:46 +02:00
johndoe123
fb9d9c30e6 NEVERHOOD: Change sound stuff in Module2500 2013-05-08 20:43:45 +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
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
bd3dac9781 NEVERHOOD: Add commented out code (which is TODO) to Module2500 so I don't forget it later 2013-05-08 20:43:41 +02:00
johndoe123
86c75922fe NEVERHOOD: Implement Scene2504 and add all car track scenes 2013-05-08 20:43:40 +02:00
johndoe123
bbb23cdf27 NEVERHOOD: Start with Module2500
- Implement Scene2501
- Add Scene::removeSprite
2013-05-08 20:43:40 +02:00