Expect more changes to come quickly to start with as bugs are found.
This version will be live by 9AM 27th November 2009
Template will be updated accordingly and so will the dll and xml files on the student shared game programming resources folder
Changes in this release
=======================
EngineManager
-------------
fixed - TrackDisplayOn(), integer arithmetic bug on history stepper
added - TrackDisplayOn(trackDefintion, number of points), this allows you to specify how many points are displayed on the track. Do no use excessive numbers as this will kill draw speed, use enough to see your track clearly. You can still use TrackDisplayOn(trackDefinition) for default number of points displayed.
Note: I will be depreciating TrackHelper.Draw() as this is a repeat of this code with complications.
Sprite
---------
altered - Update(), so it records the last position of the sprite once its started updating. The last position is only recorded when a sprite is updated.
fixed - last position, used to rely on history positions as all sprites generated at least 2 history positions. I forgot that I removed this feature so implemented a lst position.
SpriteHelper
------------
fixed - RotateFacingVelocity(), using fix for last position of sprite
fixed - RotateFacingDirectionMoving(), using same fix as above.
added - ScaleToThisSize(), calculates scale factors to change a sprite to fill a rectangle (you can calculate this yourself tho')
added - ScaleToThisWidth(), calculates X scale of sprite to match the width given, keeps aspect ratio the same so scales Y accordingly.
added - ScaleToThisHeight(), calculates Y scale of sprite to match height given, keeps aspect ratio the same so scales X accordingly
Thursday, 26 November 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment