-
Notifications
You must be signed in to change notification settings - Fork 0
/
mad_1.bff
44 lines (39 loc) · 829 Bytes
/
mad_1.bff
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
# This is a comment
# This example is for mad 1 in Lazor
# x = no block allowed
# o = blocks allowed
# A = fixed reflect block
# B = fixed opaque block
# C = fixed refract block
# Grid will start at top left being 0, 0
# Step size is by half blocks
# Thus, this leads to even numbers indicating
# the rows/columns between blocks, and odd numbers
# intersecting blocks.
GRID START
o o o o
o o o o
o o o o
o o o o
GRID STOP
# Here we specify that we have 5 reflect blocks
A 2
C 1
# Now we specify that we have two lazers
# x, y, vx, vy
# NOTE! because 0, 0 is the top left, our axis
# are as follows:
#
# __________\ +x
# | /
# |
# |
# |
# \|/ +y
#
L 2 7 1 -1
# Here we have the points that we need the lazers to intersect
P 3 0
P 4 3
P 2 5
P 4 7