C# Class XnaFlixel.data.FlxQuake

Datei anzeigen Open project: jsbeckr/XnaFlixel Class Usage Examples

Public Properties

Property Type Description
x int
y int

Protected Properties

Property Type Description
_intensity float
_timer float
_zoom int

Public Methods

Method Description
FlxQuake ( int Zoom )

Constructor.

start ( float Intensity, float Duration ) : void

Reset and trigger this special effect. @param Intensity Percentage of screen size representing the maximum distance that the screen can move during the 'quake'. @param Duration The length in seconds that the "quake" should last.

stop ( ) : void

Stops this screen effect.

update ( ) : void

Updates and/or animates this special effect.

Method Details

FlxQuake() public method

Constructor.
public FlxQuake ( int Zoom )
Zoom int

start() public method

Reset and trigger this special effect. @param Intensity Percentage of screen size representing the maximum distance that the screen can move during the 'quake'. @param Duration The length in seconds that the "quake" should last.
public start ( float Intensity, float Duration ) : void
Intensity float
Duration float
return void

stop() public method

Stops this screen effect.
public stop ( ) : void
return void

update() public method

Updates and/or animates this special effect.
public update ( ) : void
return void

Property Details

_intensity protected_oe property

The intensity of the quake effect: a percentage of the screen's size.
protected float _intensity
return float

_timer protected_oe property

Set to countdown the quake time.
protected float _timer
return float

_zoom protected_oe property

The game's level of zoom.
protected int _zoom
return int

x public_oe property

The amount of X distortion to apply to the screen.
public int x
return int

y public_oe property

The amount of Y distortion to apply to the screen.
public int y
return int