-
Notifications
You must be signed in to change notification settings - Fork 10
/
hexen_ex.wl
64 lines (55 loc) · 1.25 KB
/
hexen_ex.wl
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
/*
* hexen_ex.wl: Simple example of a Hexen map
* part of WadC
*
* Copyright © 2016 Jonathan Dowland <[email protected]>
*
* Distributed under the terms of the GNU GPL Version 2
* See file LICENSE.txt
*/
#"hexen.h"
#"standard.h"
thingstep(x) {
movestep(64,0)
x thing
}
main {
hexendefaults
pushpop(
movestep(64,64)
thing
clearflag(or(cleric,mage))
thingstep(quietus1)
thingstep(quietus2)
thingstep(quietus3)
setflag(cleric)
clearflag(or(fighter,mage))
thingstep(wraithverge1)
thingstep(wraithverge2)
thingstep(wraithverge3)
setflag(mage)
clearflag(or(fighter,cleric))
thingstep(bloodscourge1)
thingstep(bloodscourge2)
thingstep(bloodscourge3)
)
box(0,256,160,1024,1024)
setflag(or(cleric,fighter))
pushpop(
movestep(512,512)
iceguy
fori(1,5,
-- spawn a quartz flask when the wendigos die
-- thanks Gez
setthingargs(i, 0, 135, i,75,0,0,0)
thing movestep(0,64))
)
-- demonstrate z-position with a rising line of mana
mana1
movestep(64,960)
fori(1,10,
setthingargs(0, mul(i,8) /* zpos */, 0, 0,0,0,0,0)
thing
move(64)
)
}