Skip to content
Snippets Groups Projects
Commit 4d691895 authored by Ori Almog's avatar Ori Almog
Browse files

Added simple makefile

parent a9d5a9fe
No related branches found
No related tags found
No related merge requests found
......@@ -37,25 +37,25 @@ vector<vector<char>> getMap(int playerX, int playerY, int mapSize){
vector<vector<char>> map(mapSize);
for (int i = 0; i < map.size(); i++){
map[i] = vector<char>(mapSize);
}
for (int i = 0; i < map.size(); i++){
map[i] = vector<char>(mapSize);
}
int k = 0;
for (vector<char>& i : map) {
for (char& j : i){
j = ' ';
}
}
int k = 0;
for (vector<char>& i : map) {
for (char& j : i){
j = ' ';
}
}
map[playerY][playerX] = '#';
map[playerY][playerX] = '#';
return map;
return map;
}
int main() {
cout << "Welcome to RogueReborn" << endl;
printMap(getMap(5,5,10));
printMap(getMap(5,5,10));
}
\ No newline at end of file
compile: main.cpp
@echo Compiling...
@g++ main.cpp -o RogueReborn -std=c++11
clean:
@echo Cleaning...
@rm RogueReborn
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment