C# Class SmashBros.MySystem.Camera2D

Mostrar archivo Open project: Grutn/TDT4240-X2 Class Usage Examples

Public Methods

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 ( GameTime gameTime ) : void

Moves the camera forward one timestep.

Private Methods

Method Description
SetView ( ) : void

Method Details

Camera2D() public method

The constructor for the Camera2D class.
public Camera2D ( GraphicsDevice graphics ) : System
graphics GraphicsDevice
return System

ConvertScreenToWorld() public method

public ConvertScreenToWorld ( Vector2 location ) : Vector2
location Vector2
return Vector2

ConvertWorldToScreen() public method

public ConvertWorldToScreen ( Vector2 location ) : Vector2
location Vector2
return Vector2

Jump2Target() public method

public Jump2Target ( ) : void
return void

MoveCamera() public method

public MoveCamera ( Vector2 amount ) : void
amount Vector2
return void

ResetCamera() public method

Resets the camera to default values.
public ResetCamera ( ) : void
return void

RotateCamera() public method

public RotateCamera ( float amount ) : void
amount float
return void

Update() public method

Moves the camera forward one timestep.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void