Method | Description | |
---|---|---|
Camera2D ( GraphicsDevice graphics ) : System |
The constructor for the Camera2D class.
|
|
ConvertScreenToWorld ( Vector2 location ) : Vector2 | ||
ConvertWorldToScreen ( Vector2 location ) : Vector2 | ||
Jump2Target ( ) : void | ||
MoveCamera ( Vector2 amount ) : void | ||
ResetCamera ( ) : void |
Resets the camera to default values.
|
|
RotateCamera ( float amount ) : void | ||
Update ( |
Moves the camera forward one timestep.
|
Method | Description | |
---|---|---|
SetView ( ) : void |
public Camera2D ( GraphicsDevice graphics ) : System | ||
graphics | GraphicsDevice | |
return | System |
public ConvertScreenToWorld ( Vector2 location ) : Vector2 | ||
location | Vector2 | |
return | Vector2 |
public ConvertWorldToScreen ( Vector2 location ) : Vector2 | ||
location | Vector2 | |
return | Vector2 |
public Update ( |
||
gameTime | ||
return | void |