// program rotira tetris figure po izboru
#include "c_tetris.h"
int main(){
initwindow (screenMaxX,800);/*otvara prozor velicine 800 x 800 piksela*/
figure *myFigure=new figure::figure(100,100,100,SQUARE,VERTICAL,LIGHTGREEN,10);
myFigure->drawMe();
myFigure->play();
while (!kbhit( )); /*zadržava prozor sa crtežom otvorenim*/
closegraph( );
return 1;
}
#include "c_tetris.h"
int main(){
initwindow (screenMaxX,800);/*otvara prozor velicine 800 x 800 piksela*/
figure *myFigure=new figure::figure(100,100,100,SQUARE,VERTICAL,LIGHTGREEN,10);
myFigure->drawMe();
myFigure->play();
while (!kbhit( )); /*zadržava prozor sa crtežom otvorenim*/
closegraph( );
return 1;
}
No comments:
Post a Comment