C# Class FontEffectsLib.FontTypes.ArcadeFont

An arcade-style font which rapidly cycles through colors.
Inheritance: ShadowFont
Mostrar archivo Open project: GreatMindsRobotics/FontEffectsLib Class Usage Examples

Protected Properties

Property Type Description
_colorCyclesPerSecond float
currentColor int

Public Methods

Method Description
ArcadeFont ( SpriteFont font, Vector2 position ) : System

Create a new instance of ArcadeFont.

ArcadeFont ( SpriteFont font, Vector2 position, String text, float colorChangeDelay ) : System

Create a new instance of ArcadeFont.

Update ( GameTime gameTime ) : void

Update this ArcadeFont.

Method Details

ArcadeFont() public method

Create a new instance of ArcadeFont.
public ArcadeFont ( SpriteFont font, Vector2 position ) : System
font Microsoft.Xna.Framework.Graphics.SpriteFont The font to render.
position Vector2 The position of the font.
return System

ArcadeFont() public method

Create a new instance of ArcadeFont.
public ArcadeFont ( SpriteFont font, Vector2 position, String text, float colorChangeDelay ) : System
font Microsoft.Xna.Framework.Graphics.SpriteFont The font to render.
position Vector2 The position of the font.
text String The text to display.
colorChangeDelay float The number of times to cycle through in one second.
return System

Update() public method

Update this ArcadeFont.
public Update ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime The current , representing the time elapsed over the course of the game.
return void

Property Details

_colorCyclesPerSecond protected_oe property

The number of times to cycle through FontColors in one second.
protected float _colorCyclesPerSecond
return float

currentColor protected_oe property

The index of the current color in FontColors.
protected int currentColor
return int