#define maxX 800
#define maxY 800
#include <conio.h>
#include <stdio.h>
#include "c_game.h"
main(){
initwindow(maxX,maxY); //open a 400x300 graphics window
c_game *game= new c_game();
game->play(maxX,maxY);
while(!kbhit()); //wait for user to press a key
closegraph(); //close graphics window
}
#define maxY 800
#include <conio.h>
#include <stdio.h>
#include "c_game.h"
main(){
initwindow(maxX,maxY); //open a 400x300 graphics window
c_game *game= new c_game();
game->play(maxX,maxY);
while(!kbhit()); //wait for user to press a key
closegraph(); //close graphics window
}
No comments:
Post a Comment