Bugs fixed in this release
==========================
EngineManager010 - killed sprites now removed from bins properly upon removal.
EngineManager011 - hopefully fixed the SpriteBatch.End() crash that is occuring when you drag window between screens. I don't seem to be able to re-create it anymore on my teacher desk machine. Need some people to test it. After testing with Patrick's code I've tracked down the culprit but not the reason, I have a fix that should stop it crashing in future, but I need to look at the reason it actually occurs.
EventManager005 - Events repeatedly raised using RaisedUntil() now re-initialise
Changes in this release
=======================
EngineManager
-------------
cleanup - Draw(), cleaned some of the code to reduce number of new objects created during draw cycle
Limit
-----
added - turnOffGravityBottomOnly, this turns gravity off only when you hit the bottom of a limit box all other edges are ignored.
added - killPastXStopY, kills a sprite if it goes past the left/right boundaries and stops sprites vertical movement if it touches top/bottom
added - killPastYStopX, kills a sprite if it goes past top/bottom boundaries and stops sprites horizontal movement if it touches left/right
Timing (TimerActions)
------
added - OnTimingDone(), lets you set an internal sprite event, which automatically runs an Update subroutine when the timer elapses
TimingDone can be called at the end of
ShowAfter(), ShowAfterFlash(), StopAfter(), ImpulseStopAfter(), FlashAfter(), ShowAfterKillAfter(), once sprite is shown, StartAfterStopAfter() (called when it starts and again when it stops use GetPhase to determine which state its in), FlashAfterKillAfter() (once flashing starts)
For instance, you may want the player to be invicible to start with and indicate with flashing, Using StopAfter() to flash the sprite for a while (set sprite CollisionDisable() when you create the sprite). Set the OnTimingDone which will be called when the flashing stops, to turn on CollisionEnable() the sprite.
added - RemoveOnTiming(), lets you remove the update handler associated with timer actions
added - FireEvent(), lets you specify an update handler that runs repeatidly after a certain amount of time
added - FireEventOnce(), lets you specify an update handler that runs once after a certain amount of time
adjusted - Timing updates to take account of partial time overlaps, this should make the timer actions more regular
Friday, 22 January 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment