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; }
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(); }