C# Class FontEffectsLib.FontTypes.ArcadeFont

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

Protected Properties

Свойство Type Description
_colorCyclesPerSecond float
currentColor int

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

ArcadeFont() public méthode

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.
Résultat System

Update() public méthode

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.
Résultat void

Property Details

_colorCyclesPerSecond protected_oe property

The number of times to cycle through FontColors in one second.
protected float _colorCyclesPerSecond
Résultat float

currentColor protected_oe property

The index of the current color in FontColors.
protected int currentColor
Résultat int