summaryrefslogtreecommitdiff
path: root/assets/maps/test.hmap
blob: 16b13948106119098fd8d1256b29a66e8ea20c07 (plain)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
DEF map {
  I32 wallcount = 7;
  I32 polycount = 1;
  I32 propcount = 5;
  I32 spritecount = 1;
  VEC3 startpos = { 84, 109, -39.75 };
  F32 startang = 0;
  DEF props {
    DEF 0 {
      CLR clr = { 1, 1, 1, 1 };
      STR tex[256] = "uvtest.png";
    }
    DEF 1 {
      CLR clr = { 0, 1, 0, 1 };
      STR tex[256] = "uvtest.png";
    }
    DEF 2 {
      CLR clr = { 1, 0, 1, 1 };
      STR tex[256] = "uvtest.png";
    }
    DEF 3 {
      CLR clr = { 0, 1, 1, 1 };
    }
    DEF 4 {
      CLR clr = { 1, 1, 0, 1 };
    }
  }
  DEF walls {
    DEF 0 {
      VEC3 start = { 0, 0, -40 };
      VEC3 end = { 200, 0, 120 };
      I32 propid = 0;
    }
    DEF 1 {
      VEC3 start = { 200, 0, -40 };
      VEC3 end = { 200, 200, 100 };
      I32 propid = 1;
    }
    DEF 2 {
      VEC3 start = { 200, 200, -40 };
      VEC3 end = { 0, 200, 120 };
      I32 propid = 2;
    }
    DEF 3 {
      VEC3 start = { 60, 30, -40 };
      VEC3 end = { 30, 30, 80 };
      I32 propid = 3;
    }
    DEF 4 {
      VEC3 start = { 60, 60, -40 };
      VEC3 end = { 60, 30, 80 };
      I32 propid = 3;
    }
    DEF 5 {
      VEC3 start = { 30, 60, -40 };
      VEC3 end = { 60, 60, 80 };
      I32 propid = 3;
    }
    DEF 6 {
      VEC3 start = { 30, 30, -40 };
      VEC3 end = { 30, 60, 80 };
      I32 propid = 3;
    }
  }
  DEF polygons {
    DEF 0 {
      I32 vertcount = 4;
      I32 propid = 0;
      I32 type = 0;
      DEF vertices {
        DEF 0 {
          VEC3 pos = { 0, 0, -40 };
          VEC2 uv = { 0, 0 };
          CLR clr = { 1, 1, 1, 1 };
        }
        DEF 1 {
          VEC3 pos = { 200, 0, -40 };
          VEC2 uv = { 0, 1 };
          CLR clr = { 1, 1, 1, 1 };
        }
        DEF 2 {
          VEC3 pos = { 200, 200, -40 };
          VEC2 uv = { 1, 1 };
          CLR clr = { 1, 1, 1, 1 };
        }
        DEF 3 {
          VEC3 pos = { 0, 200, -40 };
          VEC2 uv = { 1, 0 };
          CLR clr = { 1, 1, 1, 1 };
        }
      }
    }
  }
  DEF sprites {
    DEF 0 {
      VEC3 pos = { 120, 120, -40 };
      VEC2 size = { 40, 40 };
      CLR clr = { 1, 1, 1, 1 };
      STR tex[256] = "uvtest.png";
    }
  }
}