Ejemplo n.º 1
0
        public void ShowItems(Actor actorInventory)
        {
            int indexInventoryY = 0;

            //inventory.Clear();
            foreach (Item item in actorInventory.Inventory)
            {
                inventory.Add(item);
                inventoryConsole.Print(0, indexInventoryY, item.Name);
                indexInventoryY++;
            }
        }
Ejemplo n.º 2
0
        private static void Init()
        {
            // Build the room's walls then carve out some floors
            CreateWalls();
            CreateFloors();

            Console startingConsole = new ScrollingConsole(Width, Height, Global.FontDefault, new Rectangle(0, 0, Width, Height), _tiles);

            // Set our new console as the thing to render and process
            SadConsole.Global.CurrentScreen = startingConsole;


            //startingConsole.Fill(new Rectangle(3, 3, 27, 5), null, Color.Black, 0, SpriteEffects.None);
            startingConsole.Print(6, 5, "Hello from SadConsole", ColorAnsi.CyanBright);

            // create an instance of player
            CreatePlayer();

            // add the player Entity to our only console
            // so it will display on screen
            startingConsole.Children.Add(player);
        }