C# Class PunkX.Graphic

Base class for all graphical types that can be drawn by Entity.
Afficher le fichier Open project: RichardMarks/PunkX Class Usage Examples

Méthodes publiques

Свойство Type Description
active System.Boolean
relative System.Boolean
scrollX float
scrollY float
visible System.Boolean
x float
y float

Méthodes publiques

Méthode Description
Graphic ( ) : System

constructor

render ( Microsoft point, Microsoft camera ) : void

Renders the graphic to the screen buffer.

update ( ) : void

Updates the graphic.

Method Details

Graphic() public méthode

constructor
public Graphic ( ) : System
Résultat System

render() public méthode

Renders the graphic to the screen buffer.
public render ( Microsoft point, Microsoft camera ) : void
point Microsoft The position to draw the graphic.
camera Microsoft The camera offset.
Résultat void

update() public méthode

Updates the graphic.
public update ( ) : void
Résultat void

Property Details

active public_oe property

If the graphic should update.
public Boolean,System active
Résultat System.Boolean

relative public_oe property

If the graphic should render at its position relative to its parent Entity's position.
public Boolean,System relative
Résultat System.Boolean

scrollX public_oe property

X scrollfactor, effects how much the camera offsets the drawn graphic. Can be used for parallax effect, eg. Set to 0 to follow the camera, 0.5 to move at half-speed of the camera, or 1 (default) to stay still.
public float scrollX
Résultat float

scrollY public_oe property

Y scrollfactor, effects how much the camera offsets the drawn graphic. Can be used for parallax effect, eg. Set to 0 to follow the camera, 0.5 to move at half-speed of the camera, or 1 (default) to stay still.
public float scrollY
Résultat float

visible public_oe property

If the graphic should render.
public Boolean,System visible
Résultat System.Boolean

x public_oe property

X offset.
public float x
Résultat float

y public_oe property

Y offset.
public float y
Résultat float