Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream.h>
- #include<conio.h>
- #include<graphics.h>
- #include<time.h>
- #include<dos.h>
- #include<stdio.h>
- int Map();
- int Map() {
- int LeftHavana = 75;
- int TopHavana = 50;
- int RightHavana= 580;
- int BottomHavana= 150;
- setfillstyle(1,5);
- bar(LeftHavana, TopHavana, RightHavana, BottomHavana);
- return 0;
- }
- /*int IngameTime(int start);
- int IngameTime(int start){
- clock_t end;
- clrscr();
- end=clock();
- int X,Y;
- X=20;
- Y=2;
- outtextxy(X,Y,(end-start));
- return 0;
- }
- */
- void main() {
- int gd = DETECT, gm;
- initgraph(&gd, &gm, "C:\\TC\\bgi");
- //int GameMode=1;
- //clock_t start, end;
- /*
- while (GameMode==1); {
- start = clock();
- IngameTime(start);
- delay(1000);
- }
- */
- int Map();
- getch();
- closegraph();
- }
Add Comment
Please, Sign In to add comment