Ejemplo n.º 1
0
 public Star(Starfield starfield, int x, int y, float scale, float timeToLive)
 {
     starField = starfield;
     TimeToLive = timeToLive;
     Texture = starfield.Texture;
     Position = new Vector2(x, y);
     Scale = scale;
 }
Ejemplo n.º 2
0
 public Star(Starfield starfield, int x, int y, float scale, float timeToLive)
 {
     starField  = starfield;
     TimeToLive = timeToLive;
     Texture    = starfield.Texture;
     Position   = new Vector2(x, y);
     Scale      = scale;
 }
Ejemplo n.º 3
0
        public Level()
        {
            var graphicsDevice = GameServices.GetService<GraphicsDevice>();
            QuadTree = new QuadTree(0, new Rectangle(0, 0, graphicsDevice.Viewport.Width, graphicsDevice.Viewport.Height));
            Spawners = new List<Spawner>();
            SafeToIterate = new List<GameObject>();
            AllDrawableGameObjects = new List<GameObject>();

            StarField = new Starfield();
        }