Beispiel #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //Create Player
            player1 = new Player();

            //Create Atlas
            Atlas.BuildAtlas(player1);
            LoadTiles();

            //Set Current Map
            GameState.CurrentMap = Atlas.Maps[player1.Map];

            //Load Current Map into Map Array object
            MapExtract = GameState.CurrentMap.LoadMapFromFile();

            if (player1.HasHouse)
            {
                MapExtract[player1.HouseX, player1.HouseY] = "H";
            }

            TranslateMap();

            GameTimer.Enabled = true;
        }