C# Class TiledLib.Camera

Mostrar archivo Open project: GarethIW/LDEngine Class Usage Examples

Public Properties

Property Type Description
BoundsHeight int
BoundsWidth int
CameraMatrix Matrix
ClampRect Microsoft.Xna.Framework.Rectangle
Height int
Instance Camera
Position Vector2
Rotation float
RotationTarget float
Target Vector2
Width int
Zoom float

Public Methods

Method Description
Camera ( int width, int height, Map map ) : System
Camera ( int width, int height, int boundswidth, int boundsheight ) : System
Shake ( double time, float amount ) : void
Update ( GameTime gameTime ) : void

Update the camera

Method Details

Camera() public method

public Camera ( int width, int height, Map map ) : System
width int
height int
map Map
return System

Camera() public method

public Camera ( int width, int height, int boundswidth, int boundsheight ) : System
width int
height int
boundswidth int
boundsheight int
return System

Shake() public method

public Shake ( double time, float amount ) : void
time double
amount float
return void

Update() public method

Update the camera
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void

Property Details

BoundsHeight public_oe property

public int BoundsHeight
return int

BoundsWidth public_oe property

public int BoundsWidth
return int

CameraMatrix public_oe property

public Matrix CameraMatrix
return Matrix

ClampRect public_oe property

public Rectangle,Microsoft.Xna.Framework ClampRect
return Microsoft.Xna.Framework.Rectangle

Height public_oe property

public int Height
return int

Instance public_oe static_oe property

public static Camera,TiledLib Instance
return Camera

Position public_oe property

public Vector2 Position
return Vector2

Rotation public_oe property

public float Rotation
return float

RotationTarget public_oe property

public float RotationTarget
return float

Target public_oe property

public Vector2 Target
return Vector2

Width public_oe property

public int Width
return int

Zoom public_oe property

public float Zoom
return float