public BackGroundStar(Vector2 position, MapDictionary.MapType type)
     : base("BGS", position, 0.1f)
 {
     this.type  = type;
     StarAlpha  = 0f;
     isSkyColor = false;
 }
Exemplo n.º 2
0
 public void Initialize()
 {
     isEndFlag = false;
     next      = Scene.Ending;
     gameObjectManager.Initialize();
     particleManager.Initialize();
     uiManager.Initialize();
     mapType = MapDictionary.MapType.Plain;
     sound   = GameDevice.Instance().GetSound();
     LoadMap(mapType);
 }
Exemplo n.º 3
0
        public void LoadMap(MapDictionary.MapType type)
        {
            gameObjectManager.Initialize();
            particleManager.Initialize();
            uiManager.Initialize();
            mapType = type;
            var reader = GameDevice.Instance().GetCSVReader();

            reader.Read(MapDictionary.MapNames[(int)mapType]);
            var map = new Map(reader.GetData());

            gameObjectManager.Add(map);
            keyIcon     = new KeyIcon(Vector2.Zero);
            fade        = new Fade(Vector2.Zero, Fade.FadeOption.Out);
            clock       = new Clock(Vector2.Zero);
            backGrounds = new BackGround[] {
                new BackGround1(Vector2.Zero, mapType),
                new BackGroundStar(Vector2.Zero, mapType),
                new BackGround2(Vector2.Zero, mapType),
                new BackGround3(Vector2.Zero, mapType),
            };
        }
Exemplo n.º 4
0
 public BackGround3(Vector2 position, MapDictionary.MapType type)
     : base(names[(int)type], position, 0.7f)
 {
 }