-
Notifications
You must be signed in to change notification settings - Fork 0
/
objects.h
49 lines (42 loc) · 937 Bytes
/
objects.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
void objects(int ox,int oy)
{
int n=rand()%4,c;
c=(rand()%14)+1;
switch(n)
{
case 1:
textcolor(c);
gotoxy(ox-1,oy-1);
printf("%c",210);
gotoxy(ox-4,oy);
printf("%c%c%c%c%c%c%c",174,198,206,153,206,181,175);
gotoxy(ox-2,oy+1);
printf("%c%c%c",216,234,216);
break;
case 2:
textcolor(c);
gotoxy(ox-1,oy-1);
printf("%c%c%c%c%c",170,220,220,220,169);
gotoxy(ox-1,oy);
printf("%c%c%c%c%c",219,219,233,219,219);
gotoxy(ox-1,oy+1);
printf("%c%c%c%c%c",223,223,223,223,223);
break;
case 3:
textcolor(c);
gotoxy(ox-3,oy-1);
printf("%c%c %c %c%c",243,220,209,220,242);
gotoxy(ox-2,oy);
printf("%c%c%c%c%c",223,219,219,219,223);
gotoxy(ox,oy+1);
printf("%c",223);
break;
default:
textcolor(c);
gotoxy(ox,oy);
printf("%c%c",223,223);
gotoxy(ox,oy-1);
printf("%c%c",220,220);
break;
}
}