Beispiel #1
0
        public TileMap(Tileset tileset, MapLayer layer)
        {
            tilesets = new List<Tileset>();
            tilesets.Add(tileset);

            mapLayers = new List<MapLayer>();
            mapLayers.Add(layer);

            mapWidth = mapLayers[0].Width;
            mapHeight = mapLayers[0].Height;
        }
Beispiel #2
0
        /// <summary>
        /// Loads the images used for this level.
        /// </summary>
        public override void LoadContent()
        {
            base.LoadContent();

            tilesetTexture = Content.Load<Texture2D>("Tilesets/SpaceStationTileset1");
            tileset1 = new Tileset(tilesetTexture, 6, 3, 64, 64);

            layerTexture = Content.Load<Texture2D>("Backgrounds/1-1");

            string[] sampleConvo = { "Text 1", "Text 2", "Finished." };
            game.dialogueScreen.ConversationItems = sampleConvo;

            tilesets.Add(tileset1);

            LevelIndex = 1;
        }