-
Notifications
You must be signed in to change notification settings - Fork 3
/
portals.asm
45 lines (41 loc) · 1.59 KB
/
portals.asm
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
NPORTALS equ 5
***
* Portal table row length
PTROWLEN equ 4+(2*(NPORTALS-1))
; Inactive portal graphic
LDF0A fdb %0000010101000000 ; ..BBB...
fdb %0001000000010000 ; .B...B..
fdb %0100000000000100 ; B.....B.
fdb %0100000000000100 ; B.....B.
fdb %0100000000000100 ; B.....B.
fdb %0001000000010000 ; .B...B..
fdb %0000010101000000 ; ..BBB...
fdb %0000000000000000 ; ........
; Active portal graphic
LDF1A fdb %0000010101000000 ; ..BBB...
fdb %0001000000010000 ; .B...B..
fdb %0100000000000100 ; B.....B.
fdb %0100001100000100 ; B..W..B.
fdb %0100000000000100 ; B.....B.
fdb %0001000000010000 ; .B...B..
fdb %0000010101000000 ; ..BBB...
fdb %0000000000000000 ; ........
; Portal list; each entry consists of:
; X coordinate (16 bits)
; Y coordinate (16 bits)
; sets of destination coordinates (in packed divided by four format) leading to the other portals
; one of which is chosen at "random" when a portal is activated
LDF2A
***
fcb $01,$b0,$01,$54 ; PORTAL 1 6c55 432,340 this is the one visible on startup
fcb $0b,$0b,$ba,$09,$13,$48,$aa,$89 ; PORTAL 2 PORTAL 3 PORTAL 4 PORTAL 5
fcb $00,$2c,$00,$2c ; PORTAL 2 0b0b 44,44
fcb $6c,$55,$ba,$09,$13,$48,$aa,$89 ; PORTAL 1 PORTAL 3 PORTAL 4 PORTAL 5
fcb $02,$e8,$00,$24 ; PORTAL 3 ba09 744,36
fcb $0b,$0b,$6c,$55,$13,$48,$aa,$89 ; PORTAL 2 PORTAL 1 PORTAL 4 PORTAL 5
fcb $00,$4c,$01,$20 ; PORTAL 4 1348 76,288
fcb $0b,$0b,$ba,$09,$6c,$55,$aa,$89 ; PORTAL 2 PORTAL 3 PORTAL 1 PORTAL 5
fcb $02,$a8,$02,$24 ; PORTAL 5 aa89 680,548
fcb $0b,$0b,$ba,$09,$13,$48,$6c,$55 ; PORTAL 2 PORTAL 3 PORTAL 4 PORTAL 1
***
fdb 0 ; flag end of table