All pastes #442305 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-16 03:59 UTC
rendered paste body
        //BuildLevel()
        private static void BuildLevel()
        {
            rooms = new Room[2, 1];

            Room room;
            Item item;

            ///////////////////////////////////////////////////////////////////
            // Create a new Room
            room = new Room();

            //Assign to location 0,0
            rooms[0, 0] = room;

            //Set room properties

            room.Title = "Red Room";
            room.Description = "You have entered the Red Room";
            room.AddExit(Direction.East);

            ///////////////////////////////////////////////////////////////////
            // Create a new Room
            room = new Room();

            //Assign to location 1,0
            rooms[1,0] = room;

            //Set room properties

            room.Title = "Blue Room";
            room.Description = "You have entered the Blue Room";
            room.AddExit(Direction.West);

        }