Age | Commit message (Collapse) | Author |
|
svn-id: r42732
|
|
because Game uses pointers from the init archive which should outlive it (but didn't previously).
* Added support for setting loop status to Game.
* Made some GPL commands check whether we are in the correct loop status before executing.
svn-id: r42731
|
|
* Removed temporary hack I accidentally committed
svn-id: r42730
|
|
gates' scripts (for added effects and testing).
svn-id: r42684
|
|
order in which they were loaded). This is needed by some GPL commands.
* Added Game::getNumObjects() which returns the number of objects in the game
* Fixed segfault (accessing a null Animation *)
* Added some docs to various things
svn-id: r42683
|
|
decided to go for a mixed approach (where Animation has a global scaling factor for the whole animation which is separate from Drawable's scaled width and height) so the animation can be scaled more naturally when the scale often changes (like with perspective when the dragon is walking). Previously, one had to alter the sizes of each frame of the dragon's animation whenever the dragon moved which was unclean.
svn-id: r42680
|
|
* Fixed bug in Animation::nextFrame() which caused non-looping animations to linger on forever
* Stopped setting looping to false explicitly in AnimationManager::addAnimation() since the Animation constructor already does that
svn-id: r42657
|
|
svn-id: r42653
|
|
* Instead, Animation::nextFrame() marks both the old and the new frame dirty. This makes it possible to only update the real screen when the animation changes and results in a pretty big speedup.
* Added utility method Animation::markDirtyRect() which takes a (Surface *) and marks a dirty rect on it for the current frame.
* Fixed artifacts when moving the dragon.
svn-id: r42652
|
|
don't start/stop it over and over.
svn-id: r42651
|
|
instead of scaling it to nothing. Fixes the disappearing chair bug.
svn-id: r42650
|
|
animation to be played correctly.
svn-id: r42649
|
|
Sprite and Text.
* Changed some Drawable members from uint16 to uint.
* Added some const qualifiers to methods of Drawable.
svn-id: r42648
|
|
* Now each Sprite (and hence frame in an animation) can have a separate zoom (which is needed for some animations in the game)
* Scale factors are not stored any more; instead, we only store scaled dimensions (since these are stored in the data files) and calculate the factors from those.
svn-id: r42647
|
|
svn-id: r42628
|
|
* Made the dragon scale when it is in different parts of the room
* Added getters for relative coordinates (Animation::getRelativeX() and Animation::getRelativeY())
* Commented Game::loop() and Sprite::draw*() methods in more detail
svn-id: r42627
|
|
* Moved static declaration of real_to_double() to game.cpp
svn-id: r42616
|
|
Game::loadRoom() read in pers0 and persStep correctly.
svn-id: r42612
|
|
for short periods of time when moved to a new location.
svn-id: r42586
|
|
engine was busier than usual (like when redrawing the whole screen when returning from minimized state).
svn-id: r42585
|
|
svn-id: r42584
|
|
svn-id: r42583
|
|
has mouse enabled.
svn-id: r42582
|
|
locations allowed by the walking map)
* Enabled drawing the walking map with the 'w' hotkey for testing
svn-id: r42581
|
|
immediately when they are created.
svn-id: r42580
|
|
* Added support for sorting animations when Z is changed later on (AnimationManager::sortAnimations())
* Added support for relative coordinates (Animation::setRelative())
* Fixed bug where AnimationManager::deleteOverlays() deleted all animations
svn-id: r42579
|
|
(right arrow switches to the next room, left to the previous.
svn-id: r42577
|
|
* Modified the engine to leverage BArchive's memory management capabilities by using its pointers to data directly instead of copying
* Removed GameObject destructor (not needed because of the above change)
* Changed some more data members from uint16 to uint
svn-id: r42555
|
|
* Fixed leak in BArchive::loadFileDFW()
svn-id: r42554
|
|
* Fixed unsigned to signed comparison.
svn-id: r42549
|
|
svn-id: r42547
|
|
* Added WalkingMap::isWalkable()
* Renamed remaining _priority identifiers to _z which were left by mistake in the previous commit
svn-id: r42546
|
|
svn-id: r42542
|
|
* Added DraciEngine::walkingMapsArchive
* Made Game::loadRoom() read in the current walking map
svn-id: r42541
|
|
svn-id: r42535
|
|
svn-id: r42534
|
|
Added a HACK note for running the gates' scripts.
svn-id: r42532
|
|
to int
* Modified Game::loadRoom to load gates and execute their scripts
* The first room loaded is now Game::_info._startRoom instead of 0
* Fixed reading of _pers0 and _persStep from the data files (they are 6 instead of 12 bytes)
* Added more debug info to Script and Game
svn-id: r42515
|
|
_smallFont and _bigFont so each font can be handled separately.
svn-id: r42514
|
|
svn-id: r42489
|
|
drawn after it's stopped
* Fixed debugging info when starting and stopping animations
svn-id: r42485
|
|
svn-id: r42465
|
|
svn-id: r42464
|
|
IsObjOff, IsObjAway
* Changed GameObject::_location to an int since we sometimes use location -1.
* Some more uint <-> int changes to prevent comparisons between signed and unsigned.
svn-id: r42452
|
|
number of icons is correct.
svn-id: r42449
|
|
between scene redraws (filled with the colour 0) to fix artifacts when animating the logo.
svn-id: r42448
|
|
of filling the surface manually. Changed Surface to use uint instead of uint8 throughout.
svn-id: r42447
|
|
animation can have a different delay.
svn-id: r42427
|
|
distributor logo.
svn-id: r42426
|
|
draw anything on some parts of the screen.
svn-id: r42425
|