Exemplo n.º 1
0
 public BasClass(Game game1, Games game, ref Texture2D _sprTexture, ref Texture2D _sprTexture2, Vector2 _sprPosition, Rectangle _sprRectangle)
     : base(game1)
 {
     this.game = game;
     this.tor = game.last;
     sprTextureleft = _sprTexture;
     sprTextureright = _sprTexture2;
     sprPosition = _sprPosition;
     sprRectangle = _sprRectangle;
     // TODO: Construct any child components here
 }
Exemplo n.º 2
0
 public Me(Game game, Games games, ref Texture2D _sprTexture, ref Texture2D _sprTexture2,
     Vector2 _sprPosition, Rectangle _sprRectangle, List<Box> sprboxs, List<bonusElements> bonuses, List<EnemyCollection> enemies)
     : base(game, games, ref _sprTexture, ref _sprTexture2, _sprPosition, _sprRectangle)
 {
     boxs = sprboxs;
     this.game = games;
     this.bonuses = bonuses;
     this.enemies = enemies;
     this._game = game;
     SpriteRect = _sprRectangle;
     scrBounds = new Rectangle(0, 0, game.Window.ClientBounds.Width, game.Window.ClientBounds.Height);
     // TODO: Construct any child components here
 }