static void Main() { Act.ForegroundColor = ConsoleColor.White; Act.BackgroundColor = ConsoleColor.Black; Act.Write("The eye in space watches over a spaceship. Constraining its freedom, disallowing any action it deems unworthy of being committed. Within the ship, there is you, with the name: "); StaticData.PlayerName = Act.ReadLine(); Act.WriteLine($@"""{StaticData.PlayerName},"" the radio at the front of the ship broadcasts. ""I'm not sure what's happened with our captain. He's gone mad!"" A gunshot pierces your ears and echoes throughout the ship broadcasted from the radio, then the sound of struggling people, and finally a thump to end the hustling. [Type ""HELP"" for command list] [Command always follows: ""(Verb) (Noun)""] Your inventory contains a map of the ship."); Grid grid = new Grid(new Vector2(41, 13)); // Control Room grid.GenerateRoom(new Vector2(7, 7), new Vector2(7, 6)); // Lab grid.GenerateRoom(new Vector2(7, 0), new Vector2(7, 6)); // Control Room to Lab grid.Tiles[10, 7] = Grid.Tile.Ground; grid.Tiles[10, 5] = Grid.Tile.Ground; grid.Tiles[9, 6] = Grid.Tile.Wall; grid.Tiles[11, 6] = Grid.Tile.Wall; { const int y = 0; // A grid.GenerateRoom(new Vector2(0, y), new Vector2(6, 4)); // A to Lab grid.Tiles[5, y + 1] = Grid.Tile.Ground; grid.Tiles[7, y + 1] = Grid.Tile.Ground; grid.Tiles[6, y + 2] = Grid.Tile.Wall; grid.Tiles[6, y] = Grid.Tile.Wall; } { // C const int y = 2; grid.GenerateRoom(new Vector2(15, y), new Vector2(5, 8)); // C to Lab grid.Tiles[15, y + 1] = Grid.Tile.Ground; grid.Tiles[13, y + 1] = Grid.Tile.Ground; grid.Tiles[14, y + 2] = Grid.Tile.Wall; grid.Tiles[14, y] = Grid.Tile.Wall; } { // B const int x = 21, y = 2; grid.GenerateRoom(new Vector2(x, y), new Vector2(20, 8)); // B to C grid.Tiles[x, y + 4] = Grid.Tile.Ground; grid.Tiles[x - 2, y + 4] = Grid.Tile.Ground; grid.Tiles[x - 1, y + 5] = Grid.Tile.Wall; grid.Tiles[x - 1, y + 3] = Grid.Tile.Wall; } grid.GenerateDisplay(); Map map = new Map(grid) { Name = "Map", Description = "A map of the spaceship." }; Act.Display(map.Grid); Act.WriteLine("You are within the:"); GameManager gameManager = new GameManager(new Entity()) { ErrorMessage = "A shiver strikes your body, the eye disallows your attempt." }; gameManager.PlayerEntity.Inventory.AddItem(map); gameManager.PlayerEntity.Inventory.GenerateDisplay(); gameManager.SetActiveScene(BuildScenes(gameManager)); gameManager.Execute(); }
public override void Execute(IWork.Token token) { Act.Display(ropeItem); }
public override void Execute(IWork.Token token) { Act.Display(lecternItem); }