絵のつけ方がよく分からんのでコンソール
目標が初代ドラクエ。
#include <iostream>
#include <string>
#include <ctime>
using namespace std;

void myhelp(){
cout<<"wで上移動、dで右移動、aで左移動、xで下移動"<<endl;
cout<<"sで話す、qで座標表示、fで終了"<<endl;
}

void myenc(){ //魔物とエンカウントさせる関数
int b;
srand((unsigned)time(NULL));
b=rand()%10; //10分の1で魔物と出会う
if(b==4){ //4なのは特に意味ない
cout<<"魔物がいる"<<endl;
}
}

void mygo(string myit){
cout<<myit<<"へ進んだ。"<<endl;
myenc();
}

int main(){
string n; //nに押したキーを代入
string myit; //四方向表示
int x,y; //xが横軸、yが縦軸の座標
x=0;y=0; //初期値(0,0)