示例#1
0
文件: Star.cs 项目: espenja/spacemas
 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;
 }
示例#2
0
文件: Star.cs 项目: espenja/spacemas
 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;
 }
示例#3
0
文件: Level.cs 项目: espenja/spacemas
        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();
        }