コード例 #1
0
        public void Initialize(Sprite spriteSheet, Vector2 mapCenter, Vector2 mapScale)
        {
            radar = new Radar(game, spriteSheet);
            radar.Initialize(mapCenter, 10000);

            fusionCellBars = new List <Bar>();
            for (int i = 0; i < StatsManager.MaxFusionCells; i++)
            {
                fusionCellBars.Add(new Bar(game, spriteSheet, Color.Green, true, new Rectangle(0, 25, 41, 7), new Rectangle(1, 34, 39, 5)));
            }

            emergencyFusionCellBar = new Bar(game, spriteSheet, Color.Red, true, new Rectangle(0, 25, 41, 7), new Rectangle(1, 34, 39, 5));

            lifeBar = new Bar(game, spriteSheet, Color.Green, true);
            lifeBar.Initialize();

            autoSaveHandler = new AutoSaveHandler(game);
            autoSaveHandler.Initialize();
        }
コード例 #2
0
ファイル: Game1.cs プロジェクト: LinkPact/The-Sun-Will-Go-Out
        public void AutoSave()
        {
            Save();

            AutoSaveHandler.DisplayAutoSaveMessage(2000);
        }