-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.c
52 lines (44 loc) · 1.09 KB
/
main.c
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
50
51
52
#include <stdio.h>
#include "h-define.h"
#include "h-type.h"
#include "defines.h"
#include "externs.h"
int main(int argc, char** argv)
{
int x, y;
srand(time(NULL));
generate_cave();
/*
for(y=0; y < DUNGEON_HGT; y++) {
for(x=0; x < DUNGEON_WID; x++) {
if(cave_feat[y][x] >= FEAT_WALL_EXTRA && cave_feat[y][x] <= FEAT_PERM_SOLID)
printf("#");
else if(cave_feat[y][x] >= FEAT_MAGMA && cave_feat[y][x] <= FEAT_QUARTZ_K)
printf("%%");
else if(cave_feat[y][x] == FEAT_DOOR_HEAD || cave_feat[y][x] == FEAT_SECRET)
printf("+");
else if(cave_feat[y][x] == FEAT_DOOR_TAIL)
printf("'");
else if(cave_feat[y][x] == FEAT_TRAP_HEAD)
printf("^");
else if(cave_feat[y][x] == FEAT_LESS)
printf("<");
else if(cave_feat[y][x] == FEAT_MORE)
printf(">");
else if(cave_feat[y][x] == FEAT_FLOOR)
printf(".");
else if(cave_feat[y][x] == FEAT_FLOOR)
printf("?");
}
printf("\n");
}
for(y=0; y < DUNGEON_HGT; y++) {
for(x=0; x < DUNGEON_WID; x++) {
printf("%i", cave_sector_map[y][x] % 10);
}
printf("\n");
}
*/
vectorize();
return 0;
}