public Background()
        {
            Vector2 center = new Vector2(width/2, height/2);
            this.world = new XNACS1Rectangle(center, width, height);

            this.world.Color = Color.Black;

            this.foreground = new Starfield(0.08f, 0.02f, 6f);
            this.background = new Starfield(0.04f, 0.01f, 2f);
            this.ship = new InfinityShip(0.04f);
        }
Exemplo n.º 2
0
        public Background()
        {
            Vector2 center = new Vector2(width / 2, height / 2);

            this.world = new XNACS1Rectangle(center, width, height);

            this.world.Color = Color.Black;

            this.foreground = new Starfield(0.08f, 0.02f, 6f);
            this.background = new Starfield(0.04f, 0.01f, 2f);
            this.ship       = new InfinityShip(0.04f);
        }