//-------------------------------------------------------------------------------------
 // Class constructors
 public TextObject(GameHost game)
     : base(game)
 {
     ScaleX = 1;
     ScaleY = 1;
     SpriteColor = Color.White;
 }
Esempio 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;
 }
Esempio n. 3
0
 public Score(GameHost game)
     : base(game)
 {
     ScaleX = 1;
     ScaleY = 1;
     SpriteColor = Color.White;
 }
 //-------------------------------------------------------------------------------------
 // Class constructors
 public SpriteObject(GameHost game)
     : base(game)
 {
     // Set the default scale and color
     ScaleX = 1;
     ScaleY = 1;
     SpriteColor = Color.White;
 }
Esempio 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;
        }
 public TextObject(GameHost game, SpriteFont font)
     : this(game)
 {
     Font = font;
 }
Esempio 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;
 }
Esempio n. 10
0
 public TextObject(GameHost game, SpriteFont font, Vector2 position, String text)
     : this(game, font, position)
 {
     Text = text;
 }
Esempio 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;
 }
 public SpriteObject(GameHost game, Vector2 position)
     : this(game)
 {
     // Store the provided position
     Position = position;
 }
Esempio n. 13
0
 public Score(GameHost game, SpriteFont font)
     : this(game)
 {
     Font = font;
 }
Esempio 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;
 }
Esempio n. 18
0
 public MonoLog(GameHost game, SpriteFont font, Color fontColor)
     : this(game, font)
 {
     FontColor = fontColor;
 }
 public SpriteObject(GameHost game, Vector2 position, Texture2D texture)
     : this(game, position)
 {
     // Store the provided texture
     SpriteTexture = texture;
 }
Esempio n. 20
0
 public TextObject(GameHost game, SpriteFont font, Vector2 position)
     : this(game, font)
 {
     PositionX = position.X;
     PositionY = position.Y;
 }