19. cara membuat games mobil balap denga Dev C++ #include <iostream> #include <iostream> #include <windows.h> #include <conio.h> #include <time.h> #include <stdlib.h> #define KOTAK char(178) #define BATAS_KIRI 16 #define BATAS_KANAN 59 #define BATANG char(219) using namespace std; void gotoxy(int x, int y) { COORD koord = {x, y}; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), koord); } void Credit() { gotoxy(BATAS_KANAN + 5, 15); cout << "CONTROL"; gotoxy(BATAS_KANAN + 5, 16); cout << "W : ATAS "; gotoxy(BATAS_KANAN + 5, 17); cout << "S : BAWAH"; gotoxy(BATAS_KANAN + 5, 18); cout << "D : KANAN"; gotoxy(BATAS_KANAN + 5, 19); cout << "A : KIRI"; gotoxy(BATAS_KANAN + 5, 22); cout <...
Komentar
Posting Komentar