develop #1
@@ -25,7 +25,7 @@ void setup() {
|
||||
}
|
||||
|
||||
void draw() {
|
||||
system("cls");
|
||||
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), {0,0});
|
||||
for(int i = 0; i < width + 2; i++) cout << "#";
|
||||
cout << "\n";
|
||||
for(int i = 0; i < height; i++) {
|
||||
@@ -128,6 +128,7 @@ void logic() {
|
||||
}
|
||||
|
||||
int main() {
|
||||
system("cls");
|
||||
setup();
|
||||
while(!gameOver){
|
||||
draw();
|
||||
|
||||
Reference in New Issue
Block a user