public Game(GUIWindow view) { /* start constructor */ viewWindow = view; initialize(); }
// public View() // Load the images from the Resource here to put into the tiles. // Constructors // public View() // { // } //public View(Graphics g, GUIWindow form) public DisplayView(GUIWindow form, Dungeon dungeon) { //g.DrawLine(new Pen(Brushes.Black, 5), 0, 0, 200, 200); // graphics = g; // partyImage = Image.FromFile( Directory.GetCurrentDirectory() + @"\images\party2.png"); partyImage = Properties.Resources.party2; // Load all images for the tiles here. // Directory.GetCurrentDirectory() + @"\images\treasure00.png" treasureItemImage = Properties.Resources.treasure00; dragonImage = Properties.Resources.dragon; wall = Properties.Resources.wall; wall2 = Properties.Resources.wall2; // SetupView(d); imageX = 30; imageY = 30; viewWindow = form; //d = new Dungeon(); d = dungeon; }
private void GameLoader_Load(object sender, EventArgs e) { GUIWindow guiWindow = new GUIWindow(); guiWindow.ShowDialog(); this.Close(); }