메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
SetView ( ) : void |
public Camera2D ( GraphicsDevice graphics ) : System | ||
graphics | GraphicsDevice | |
리턴 | System |
public ConvertScreenToWorld ( Vector2 location ) : Vector2 | ||
location | Vector2 | |
리턴 | Vector2 |
public ConvertWorldToScreen ( Vector2 location ) : Vector2 | ||
location | Vector2 | |
리턴 | Vector2 |
public Update ( |
||
gameTime | ||
리턴 | void |