Skip to content
Permalink
911e26a55e
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
13 lines (10 sloc) 417 Bytes
#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;
}