Commit 916d2b35 authored by Felix Huther's avatar Felix Huther
Browse files

character can move without pressing enter

parent 45016cfa
#include "terminalui.h"
#include <conio.h>
#include <stdio.h>
TerminalUI::TerminalUI(Level *mCurrentLevel)
......@@ -23,6 +25,9 @@ void TerminalUI::draw(Level *pLevel) {
char TerminalUI::askMoveFromUser() {
char direction = {};
std::cout << "What direction you want to move ?\n";
std::cin >> direction;
direction = getch();
return direction;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment