-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.c
More file actions
48 lines (45 loc) · 1.06 KB
/
test.c
File metadata and controls
48 lines (45 loc) · 1.06 KB
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
/*
* =====================================================================================
*
* Filename: test.c
*
* Description:
*
* Version: 1.0
* Created: 2012/2/14 23:52:40
* Revision: none
* Compiler: gcc
*
* Author: BurningStyle (),
* Organization:
*
* =====================================================================================
*/
#include <stdio.h>
#include "Play/displayMap.h"
#ifdef _WIN32
#define CLEAR_SCREEN "cls"
#endif
#ifdef _LINUX
#define CLEAR_SCREEN "clear"
#endif
/*
* === FUNCTION ======================================================================
* Name: main
* Description:
* =====================================================================================
*/
int main (int argc, char *argv[])
{
int temp=0;
for(temp=0;temp<=15;temp++){
sleep(500);
system(CLEAR_SCREEN);
struct MAP map;
struct BOB bob;
map=CreateMapStruct(30,30);
bob=CreateBob(FACE_RIGHT,temp-1,2);
showMap(&map,&bob);
}
return 0;
}