public GameScene(Game _game) : base(_game) { //Set Player Pos player = new PlayerTank(this); player.Position = new Vector2(Program.GameWidth / 4, Program.GameHeight / 2); //Create Boss spindleBoss = new Spindle(this); //Setup Tile Grid int w = (int)Math.Ceiling((double)(Program.GameWidth / 16)); int h = (int)Math.Ceiling((double)(Program.GameHeight / 16)) + 1; int[,] tempGrid = new int[w, h]; for (int xx = 0; xx < tempGrid.GetLength(0); xx++) { for (int yy = 0; yy < tempGrid.GetLength(1); yy++) { tempGrid[xx, yy] = 0; //HoriWalls if (xx == 0 || xx == tempGrid.GetLength(0) - 1) { tempGrid[xx, yy] = 1; } //VertWalls if (yy == 0 || yy == tempGrid.GetLength(1) - 1) { tempGrid[xx, yy] = 1; } } } tileGrid = new TileGrid(tempGrid, 16, 16); //Create Dialouge Box, but don't show it dialougeBox = new DialougeBox(); dialougeBox.Visible = false; }
private void Start() { dBox = FindObjectOfType <DialougeBox>(); resetInteract = FindObjectOfType <DialougeHolder>(); }