Ejemplo n.º 1
0
 //-------------------------------------------------------------------------------------
 // Class constructors
 public TextObject(GameHost game)
     : base(game)
 {
     ScaleX = 1;
     ScaleY = 1;
     SpriteColor = Color.White;
 }
Ejemplo n.º 2
0
 public Ball(GameHost game, Vector2 position, Texture2D texture, Score score)
     : this(game, position)
 {
     // Store the provided texture
     SpriteTexture = texture;
     this.score = score;
 }
Ejemplo n.º 3
0
 public Score(GameHost game)
     : base(game)
 {
     ScaleX = 1;
     ScaleY = 1;
     SpriteColor = Color.White;
 }
Ejemplo n.º 4
0
 //-------------------------------------------------------------------------------------
 // Class constructors
 public SpriteObject(GameHost game)
     : base(game)
 {
     // Set the default scale and color
     ScaleX = 1;
     ScaleY = 1;
     SpriteColor = Color.White;
 }
Ejemplo n.º 5
0
        //-------------------------------------------------------------------------------------
        // Class constructors
        public MonoLog(GameHost game)
            : base(game)
        {
            // Set the default scale and color
            ScaleX = 1;
            ScaleY = 1;
            SpriteColor = Color.White;

            Speed = 0.8f;
        }
Ejemplo n.º 6
0
 public TextObject(GameHost game, SpriteFont font)
     : this(game)
 {
     Font = font;
 }
Ejemplo n.º 7
0
 public Player(GameHost game, Vector2 position)
     : this(game)
 {
     // Store the provided position
     Position = position;
 }
 //-------------------------------------------------------------------------------------
 // Class constructors
 public BenchmarkObject(GameHost game, SpriteFont font, Vector2 position, Color textColor)
     : base(game, font, position)
 {
     SpriteColor = textColor;
 }
 //-------------------------------------------------------------------------------------
 // Class constructors
 /// <summary>
 /// Constructor for the object
 /// </summary>
 /// <param name="game">A reference to the MonoGame Game class inside which the object resides</param>
 public GameObjectBase(GameHost game)
 {
     // Store a reference to the game
     Game = game;
 }
Ejemplo n.º 10
0
 public TextObject(GameHost game, SpriteFont font, Vector2 position, String text)
     : this(game, font, position)
 {
     Text = text;
 }
Ejemplo n.º 11
0
 public TextObject(GameHost game, SpriteFont font, Vector2 position, String text, TextAlignment horizontalAlignment, TextAlignment verticalAlignment)
     : this(game, font, position, text)
 {
     HorizontalAlignment = horizontalAlignment;
     VerticalAlignment = verticalAlignment;
 }
Ejemplo n.º 12
0
 public SpriteObject(GameHost game, Vector2 position)
     : this(game)
 {
     // Store the provided position
     Position = position;
 }
Ejemplo n.º 13
0
 public Score(GameHost game, SpriteFont font)
     : this(game)
 {
     Font = font;
 }
Ejemplo n.º 14
0
 public MonoLog(GameHost game, SpriteFont font)
     : this(game)
 {
     Font = font;
     LineSpacing = Font.LineSpacing;
 }
 public EnvironmentGraphics(GameHost game, Vector2 position, Texture2D texture)
     : this(game, position)
 {
     // Store the provided texture
     SpriteTexture = texture;
 }
 public EnvironmentGraphics(GameHost game, Vector2 position)
     : this(game)
 {
     // Store the provided position
     Position = position;
 }
 //-------------------------------------------------------------------------------------
 // Class constructors
 public EnvironmentGraphics(GameHost game)
     : base(game)
 {
     SpriteColor = Color.White;
 }
Ejemplo n.º 18
0
 public MonoLog(GameHost game, SpriteFont font, Color fontColor)
     : this(game, font)
 {
     FontColor = fontColor;
 }
Ejemplo n.º 19
0
 public SpriteObject(GameHost game, Vector2 position, Texture2D texture)
     : this(game, position)
 {
     // Store the provided texture
     SpriteTexture = texture;
 }
Ejemplo n.º 20
0
 public TextObject(GameHost game, SpriteFont font, Vector2 position)
     : this(game, font)
 {
     PositionX = position.X;
     PositionY = position.Y;
 }