public Main() { Graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; GeradorMeteoro = new GeradorMeteoro(this); GeradorItem = new GeradorItem(this); }
internal void Start() { Started = true; Player.Posicao = new Vector2(Window.ClientBounds.Width / 2, Window.ClientBounds.Height / 2); Player.Score.Valor = 0; Player.Inercia = Vector2.Zero; Player.Direcao = Vector2.UnitX; Player.Arma = new CanhaoSimples(); Components.OfType <Meteoro>().ToList().ForEach(p => Components.Remove(p)); GeradorMeteoro.Gerar(10); }