-
Notifications
You must be signed in to change notification settings - Fork 10
/
vanilla_conveyor.wl
77 lines (64 loc) · 1.28 KB
/
vanilla_conveyor.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
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
* vanilla_conveyor.wl - part of WadC
* Copyright © 2019 Jonathan Dowland <[email protected]>
*
* Distributed under the terms of the GNU GPL Version 2
* See file LICENSE.txt
*
* Simple demonstration of vanilla conveyors
*/
#"standard.h"
#"basic.h"
#"decoration.h"
#"spawns.h"
#"lines.h"
#"pickups.h"
#"control.h"
#"vanilla_conveyor.h"
main
{
rotright
controlinit
conveyor
rotleft
!start
-- player area
box(add(lowest, 32), add(lowest,add(32,128)), 160, 128, 768)
linetype(crusher_s1_slow, $conveyor1)
place(64,32, bot("SW1EXIT") ibox(add(lowest, 64), add(lowest,add(32,128)), 160, 16, 32))
linetype(0,0)
-- stuff so we can see the results of triggers
movestep(128,0)
-- a series of doors to open
movestep(0,64)
top("BIGDOOR2")
gap
testdoor($door1)
gap
testdoor($door2)
gap
testdoor($door3)
gap
^start
place(32, 32, player1start thing)
}
conveyor
{
conveyor_init($conveyor1)
conveyor_trigger(door_w1_openclose,$door1, 128)
conveyor_trigger(door_w1_openclose,$door2, 128)
conveyor_trigger(door_w1_openclose,$door3, 128)
conveyor_finish
}
testdoor(tag)
{
sectortype(0,tag)
box(add(lowest, 32), add(lowest, 32), 160, 16, 128)
sectortype(0,0)
move(16)
}
gap
{
box(add(lowest, 32), add(lowest, 144), 160, 16, 128)
move(16)
}