Revision 1045
added a sample world, updated main to load the sample world
world.h | ||
---|---|---|
26 | 26 |
#define POLY_RECT 2 |
27 | 27 |
|
28 | 28 |
#define NUM_SHAPES 3 |
29 |
#define RAY_MISS 1E30
|
|
29 |
#define RAY_MISS 10000
|
|
30 | 30 |
#define CREATE(id, ...) (create_func[id](__VA_ARGS__)) |
31 | 31 |
#define PBBOX(b) {printf("(%g,%g) --> (%g, %g)\n",(b).p1.x,(b).p1.y,(b).p2.x,\ |
32 | 32 |
(b).p2.y);} |
Also available in: Unified diff