Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Dungeon-Game/main.cpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
13 lines (10 sloc)
417 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include "game.h" | |
#include "mainmenu.h" | |
int main(){ | |
string name = menu(); //Starts up with main menu where player sets his/her name. | |
Player player_obj(name); //Create's a player object with the player's name. | |
Game game(player_obj); //Creates a new game with the player's name. | |
game.game_loop("test.txt"); //Runs the game loop with the map file's name. | |
return 0; | |
} |