aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/sprite.cpp
AgeCommit message (Collapse)Author
2013-06-09NEVERHOOD: Add a console command to display the current surfacesFilippos Karapetis
2013-05-08NEVERHOOD: Change graphic resource draw method to get a Surface instead of ↵johndoe123
separate pixels/pitch - Merge SpriteResource::load and load2
2013-05-08NEVERHOOD: Fix Klaymen "grow" animation after drinking the potionjohndoe123
- 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-08NEVERHOOD: Simplify resource loadingjohndoe123
- Renamne and clean up
2013-05-08NEVERHOOD: Add initCubeSymbolsPuzzlejohndoe123
- 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-08NEVERHOOD: Add new method StaticSprite::loadSprite and use it instead of ↵johndoe123
setting stuff "manually"
2013-05-08NEVERHOOD: Rename and clean up fields in AnimFrameInfojohndoe123
2013-05-08NEVERHOOD: Make use of NDrawRect::setjohndoe123
2013-05-08NEVERHOOD: Rename stuff in Sprite:johndoe123
- processDelta() to updateBounds() - getRect() to getCollisionBounds() - _drawRect to _drawOffset - _rect to _collisionBounds - _deltaRect to _collisionBoundsOffset
2013-05-08NEVERHOOD: Some cleanup:johndoe123
- 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-08NEVERHOOD: Add support for shadow sprites, used only for the shadow of the ↵johndoe123
car/vehicle thing
2013-05-08NEVERHOOD: More renaming (mostly in Klayman and AnimatedSprite)johndoe123
2013-05-08NEVERHOOD: Major renaming:johndoe123
- Give better names to animation callback functions/vars - Give better names to animation functions (previously known as subXXXX - not completed yet) - Add dumpAllResources (which is a lie, since it only dumps animations for now) - More renaming to come
2013-05-08NEVERHOOD: Try to clean up the clipRect stuff a littlejohndoe123
2013-05-08NEVERHOOD: Add Module::updateChild and use it (in most places)johndoe123
2013-05-08NEVERHOOD: Multiple changes to make the game logic code cleaner (hopefully :)johndoe123
- Introduce Scene::insertStaticSprite to create static sprites instead of the old "addSprite(new StaticSprite" (not used everywhere yet) - Introduce macro InsertKlayman to create the Klayman object - Change sendMessage semantics from "receiver->sendMessage(num,arg,sender)" to "sendMessage(receiver,num,arg)", the sender is always the sending object ("this") - Similar changes using macros will follow - And fixed a bug in the elevator
2013-05-08NEVERHOOD: More work on Module3000 and Scene3009 (incomplete)johndoe123
2013-05-08NEVERHOOD: New modules Module1200, Module1400, Module1700 and Module1800johndoe123
- Implement CollisionMan::removeSprite
2013-05-08NEVERHOOD: Implement Module2300 (just a bunch of NavigationScenes)johndoe123
- Fix Smacker player by using a SafeSubReadStream - Fix NavigationMouse (cursors in type 1 were swapped)
2013-05-08NEVERHOOD: Implement Scene1004johndoe123
- Module1000 is now almost complete
2013-05-08NEVERHOOD: Implement Scene1005johndoe123
- Add FontSurface - Add DataResource - Fix NavigationScene, only accept input when interactive
2013-05-08NEVERHOOD: More work on Scene1002johndoe123
- Implement NavigationMouse and NavigationLists - Some renaming
2013-05-08NEVERHOOD: Implement color replace in AnimatedSpritejohndoe123
(used to disable a color in sprite drawing)
2013-05-08NEVERHOOD: More work on Scene1002, Klayman and the restjohndoe123
- Add "heavy debug" output to Entity (display which update/message handler is called) - Also add more debug output - Error out when a StaticData resource could not be found
2013-05-08NEVERHOOD: Start with Scene1002 (a lot incomplete)johndoe123
2013-05-08NEVERHOOD: More work on Scene1001 and Klaymanjohndoe123
- Fix a bug in Klayman's walking - The lever can now be used - Other stuff is still missing - Remove entity.cpp since it's not needed
2013-05-08NEVERHOOD: More work on Klayman (still eye cancerous code)johndoe123
- Start to implement KmScene1001 - Implement queryPositionSprite and queryPositionRectList - Implement message list related code (setting and running them) - Access to message params now with accessors (so compatible types can be converted)
2013-05-08NEVERHOOD: Start with the Klayman class (this is quite some horrible code, ↵johndoe123
also, it doesn't work yet and isn't used yet)
2013-05-08NEVERHOOD: More work on Scene1001, implement Class509 (yes, will be renamed ↵johndoe123
later) and AnimResource related stuff
2013-05-08NEVERHOOD: Module1000 and Scene1001 skeletonsjohndoe123
- Implement BaseSurface::drawSpriteResourceEx - Use CollisionMan in Scene - Some cleanup
2013-05-08NEVERHOOD: Start with AnimatedSprite and AnimResourcejohndoe123
2013-05-08NEVERHOOD: Start with Scene and Sprite classesjohndoe123