Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. void Game_Play()
  2. {setcolor(BROWN);
  3. setfillstyle(SOLID_FILL,7);
  4. bar(150, 100, 550, 420);
  5. setlinestyle(0, 0, 4);
  6.  
  7. rectangle(150, 100, 550, 420);
  8. setcolor(8);
  9. line(250, 100, 250, 420);
  10. line(350, 100, 350, 420);
  11. line(450, 100, 450, 420);
  12. line(150,180 , 550, 180);
  13. line(150,260 , 550, 260);
  14. line(150,340 , 550, 340);
  15. setcolor(RED);
  16. settextstyle(10, 0, 5);
  17.  
  18. for(int i=0,k=1,y=120;i<4;i++,y+=80)
  19. { for(int j=0,x=190;j<4;j++,k++,x+=100)
  20. {
  21. char num[100];
  22. sprintf(num,"%d",k);
  23. outtextxy(x,y,num);
  24.  
  25. }
  26. }
  27. getch();
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement