//constructor public PlayScene(TronGame game) { this.game = game; this.player = new Player1(this.game, new Vector2(32, 32), 7.5f, Color.Red, PlayerIndex.One); this.grid = new Grid(this.game); this.Initialize(); }
protected override void LoadContent() { spriteBatch = new SpriteBatch(GraphicsDevice); this.grid = new Grid(this); this.player.Add(new Player1(this,Vector2.Zero,7.5f,Color.Blue,PlayerIndex.One)); }