6 .db 'T',0 ;worm header (Test version)
7 .dw hiscore-single ;leveldata size
12 .dw single ;points to singleplayer levels
13 .dw 0 ;...peaworm level (0 = no levels/empty level)
14 .dw deathmatch ;...deathmatch
15 .dw foodmatch ;...foodmatch
16 .dw linkmatch ;...linkmatch
17 .dw hunting ;...hunting
19 .dw ctf ;...capture the flag
24 .db 5,4,15 ;peas in level, delay (0=fastest), pea-growth
25 .db 15,5 ;begin_size, sprite size (0=use default sprite)
32 .db 0,2,63 ;your start d (0=down,$80=up), y, x
33 .db 128,57 ;field width (128-255), height (57-255)
34 .db 0,0 ;no additional lines, boxes
40 .db 28,28,100,28 ;line coords: x1,y1,x2,y2
51 .db 4,3,15,10,0,1 ;...bouncing ball
52 .dw $20F ;ball begin position
131 ;Code to run when all levels are done:
132 ;Worm waits a second, then screen is cleared and this code will be run.
133 ;End with <ret> (stats-screen will then be displayed.)
134 ;If you don't want an ending, simply put <ret>.
137 call _puts ;display text
138 jp _getkey ;wait for a key
141 .db " Congratulations!!",0
146 .db $40,28,2 ;begin stats for each player
147 .db $C0,28,125 ;player 2 moves left
148 .db $00,2,63 ;player 3 moves down
149 .db $80,54,63 ;player 4 moves up
153 .db 16,12,48,12 ;x1,y1,x2,ysize(y2-y1)
154 .db 80,12,112,12 ;...
162 .db $40,30,2,$C0,30,125, $00,2,64,$80,54,64
169 .db $40,30,2,$C0,30,125, $00,2,64,$80,54,64
176 .db $40,28,2,$C0,28,125, $00,2,63,$80,54,63
188 .db $40,3,2,$40,6,2, $40,9,2,$40,12,2
196 .dw 0 ;singleplayer hiscore will be saved here