Browse Source
* Sprites now use world space coordinates by default. This behavior can be changed using the CoordinateSystem property. * Exposed effective size (sprite size with scaling) and drawn size properties to the Sprite object. * Added a CameraView rectangle to the SdlWindow to control what is shown in the world space view. * Added some arithmetic functions to the Vector2<T> class. * Sample.Sprites: Rewrote the view windowing code. It actually works correctly now. :) * Sample.Sprites: Changed player movement code so that they can no longer fly off the edges of the screen. * Updated NuGet package information.improved_timing
Ian Burgmyer
5 years ago
8 changed files with 198 additions and 50 deletions
@ -0,0 +1,14 @@
|
||||
namespace DotSDL.Graphics { |
||||
public enum CoordinateSystem { |
||||
/// <summary> |
||||
/// Uses screen space coordinates. This directly maps to pixels in the window. |
||||
/// </summary> |
||||
ScreenSpace, |
||||
|
||||
/// <summary> |
||||
/// Uses world space coordinates. This maps to a location based on the position of |
||||
/// the camera, or view. |
||||
/// </summary> |
||||
WorldSpace |
||||
} |
||||
} |
Loading…
Reference in new issue