Warrior 3000
- Type
- Game
- Category
- Two-player arena shooter
- Author
- Ken Greiner
- Published in
- Antic, February 1986 (Vol. 4, No. 10), Game of the Month
- Year
- 1986
- Language
- Atari BASIC
- Requirements
- 32K RAM, Atari BASIC, two joysticks (ports 1 and 2); disk or cassette
About the program
A thousand years from now, the people of planet Warrior 3000 are nostalgic for single combat, so their favourite sport is a duel with energy bows in a high-tech arena. Ken Greiner was 16, a student at Paul V. Moore High School, and into juggling, archery and fantasy role-playing games when Antic made his two-player Warrior 3000 its Game of the Month in February 1986. The magazine called it "an interesting blend of fast action and tactical-planning challenges".
The match lasts nine rounds, each in a different arena. Each player has 20 arrows per round, and some walls and obstacles can be shot away. Orange-disk teleporters whisk a cornered fighter to a random spot. Gaps in the side walls lead into the "Mystery Zone": an arrow or a fighter that goes in one side comes out the other, behind the enemy. In later rounds some walls and teleporters are invisible. You hear a beep when you bump into an invisible wall, and shooting it makes it appear.
Typing it in
Only lines 435, 1015, 1050 and the arena DATA contain special characters. {inv} … {/inv} means press the Atari (inverse) key before and after, {CTRL-S} and {CTRL-P} mean hold CTRL and press the letter, and {CLEAR} is ESC then SHIFT-CLEAR. The arena layouts are DATA lines from 2000 onwards, ten line numbers per round. Antic printed TYPO II checksums beside each line of the magazine listing. They are not part of the program.
How to play
Press START. Player one (joystick 1) starts at the top left, and their arrows and spare fighters are shown on the left. Player two starts at the bottom right. Move in eight directions with the stick and press the button to fire in the direction you're facing. Arrows can't hit anything at point-blank range. If both players run out of arrows, a power star appears somewhere at random, and the first to touch it gets one more arrow. The tip from "Grudnik the Great, former Warrior 3000 champ": practise diagonal shots, because they're much harder to return.
How it works
The whole game is played directly in GRAPHICS 0 screen memory with a redefined character set. Each fighter is a screen address (PP0, PP1). The arrays loaded in lines 1020–1030 turn a joystick value into an address step (−40 for up, +41 for down-right, and so on) and into the character showing the warrior facing that way. Collision tests are a single PEEK at the new address (lines 30 and 70). The code found there decides what happens: 32 is the power star, 6 or 118 a teleporter and 119 an invisible wall. An arrow (lines 130–140) is a character POKEd step by step along the same path until it hits something non-zero.
Listing
5 REM WARRIOR 3000
6 REM BY KEN GREINER
7 REM (c) 1985, ANTIC PUBLISHING
10 POKE 106,PEEK(740)-5:GRAPHICS 0:POKE 752,1:SETCOLOR 2,0,0:GOSUB 1000:GOTO 430
20 J0=15-STICK(0):C0(0)=C0(J0):P0=PP0+M(J0):IF J0=0 THEN 50
30 IF PEEK(P0)<>0 THEN GOSUB 200
40 POKE PP0,0:POKE P0,C0(0):PP0=P0
50 IF STRIG(0)=0 THEN GOSUB 100
60 J1=15-STICK(1):C1(0)=C1(J1):P1=PP1+M(J1):IF J1=0 THEN 90
70 IF PEEK(P1)<>0 THEN GOSUB 250
80 POKE PP1,0:POKE P1,C1(0):PP1=P1
90 IF STRIG(1)=0 THEN GOSUB 110
99 GOTO 20
100 IF E0<1 THEN RETURN
105 E0=E0-1:POSITION 4,0:? E0;" ":D=CH(C0(0)-96):MI=C0(0)+8:MS=P0+D:SH=2
106 IF PEEK(MS)<>0 THEN GOSUB 500:E0=E0+1:POSITION 4,0:? E0:RETURN
107 GOTO 130
110 IF E1<1 THEN RETURN
115 E1=E1-1:POSITION 34,0:? E1;" ":D=CH(C1(0)-96):MI=C1(0)+8:MS=P1+D:SH=1
120 IF PEEK(MS)<>0 THEN GOSUB 500:E1=E1+1:POSITION 34,0:? E1:RETURN
130 FOR A=25 TO 40:MM=MS+D:IF PEEK(MM)<>0 THEN 150
140 SOUND 0,A,12,10:POKE MS,0:POKE MM,MI:MS=MM:NEXT A:SOUND 0,0,0,0:POKE MM,0
150 GOSUB 300:GOSUB 500:RETURN
200 P=PEEK(P0)
201 IF P=32 THEN 210
202 IF P=6 OR P=118 THEN 220
203 IF P=119 THEN SOUND 0,100,10,12:FOR I=1 TO 5:NEXT I:SOUND 0,0,0,0
209 P0=PP0:RETURN
210 E0=E0+1:FOR I=30 TO 0 STEP -1:SOUND 0,I,10,10:NEXT I:POSITION 4,0:? E0:RETURN
220 NE=INT(RND(0)*839)+120+SC:IF PEEK(NE)<>0 THEN 220
230 POKE PP0,0:P0=NE:PP0=NE:GOSUB 290:RETURN
250 P=PEEK(P1)
251 IF P=32 THEN 260
252 IF P=6 OR P=118 THEN 270
253 IF P=119 THEN SOUND 0,150,10,12:FOR I=1 TO 5:NEXT I:SOUND 0,0,0,0
259 P1=PP1:RETURN
260 E1=E1+1:FOR I=30 TO 0 STEP -1:SOUND 0,I,10,10:NEXT I:POSITION 34,0:? E1:RETURN
270 NE=INT(RND(0)*839)+120+SC:IF PEEK(NE)<>0 THEN 270
280 POKE PP1,0:P1=NE:PP1=NE
290 FOR I=27 TO 31:POKE NE,I:FOR J=1 TO 20 STEP 2:SOUND 0,J+30,10,10:NEXT J:NEXT I:SOUND 0,0,0,0:RETURN
300 P=PEEK(MM):POKE MS,0
310 IF P=1 THEN SOUND 0,0,0,0:RETURN
311 IF P=119 THEN POKE MM,1:FOR I=100 TO 50 STEP -2:SOUND 0,I,10,8:NEXT I:SOUND 0,0,0,0:RETURN
320 IF P<97 AND P>104 THEN 330
325 IF MM=P0 OR MM=P1 THEN FOR I=0 TO 120 STEP 4:POKE MM,113+I/30:SOUND 0,I,8,15:SOUND 1,I,10,10:NEXT I:GOTO 400
330 FOR I=0 TO 3 STEP 0.15:POKE MM,2+I:SOUND 0,I*50,12,I+12:NEXT I:POKE MM,0:SOUND 0,0,0,0:RETURN
400 SOUND 1,0,0,0:FOR J=0 TO 3:FOR I=50 TO 0 STEP -1:SOUND J,I,10,10:NEXT I:NEXT J
410 ROUND=ROUND+1:MEN(SH)=MEN(SH)-1:IF MEN(SH)<>0 THEN 1050
420 POSITION 16,12:? "GAME OVER":FOR I=1 TO 1000:NEXT I
430 GRAPHICS 1+16:FOR I=1 TO 10 STEP 0.5:POSITION 4,I
435 ? #6;"{inv}warrior{/inv}":SOUND 0,I*5,8,15:POSITION 12,20-I:? #6;"{inv}{CTRL-S}{CTRL-P}{CTRL-P}{CTRL-P}{/inv}"
440 SOUND 1,I*5,12,10:POSITION 4,I-1:? #6;" ":POSITION 12,20-(I-1):? #6;" ":NEXT I
445 FOR I=1 TO 12:POSITION 3+I,10:? #6;TI$(I,I);:SOUND 0,10,10,10:FOR D=1 TO 15:NEXT D:SOUND 0,0,0,0
446 SOUND 1,0,0,0:NEXT I
450 IF STRIG(0)=0 AND STRIG(1)=0 THEN 460
455 IF PEEK(53279)<>6 THEN 450
460 GRAPHICS 0:GOTO 1040
500 IF E0>0 OR E1>0 THEN RETURN
510 M=INT(RND(0)*839)+120+SC:IF PEEK(M)<>0 THEN 510
520 FOR I=28 TO 32:SOUND 0,100-I*2,6,10:POKE M,I:FOR D=1 TO 20:NEXT D:NEXT I:SOUND 0,0,0,0:RETURN
999 END
1000 POSITION 16,11:? "STAND BY":RESTORE 1030
1010 DIM M(15),C0(15),C1(15),CH(15),MEN(2),TI$(12)
1015 TI$="{inv}WARRIOR 3000{/inv}"
1020 FOR I=0 TO 10:READ M,C0,CH:M(I)=M:C0(I)=C0:C1(I)=C0:CH(I)=CH:NEXT I
1030 DATA 0,100,0,-40,99,1,40,100,-1,0,0,-40,-1,98,40,-41,103,-39,39,102,39,0,0,-41,1,97,41,-39,101,0,41,104,0
1035 GOSUB 10000:RETURN
1040 SC=PEEK(88)+256*PEEK(89):MEN(1)=5:MEN(2)=5:ROUND=1:POKE 752,1:POKE 756,CHSET/256
1050 ? "{CLEAR}":SETCOLOR 2,0,0:E0=20:E1=20:POSITION 4,0:? E0:POSITION 34,0:? E1:POSITION 17,1:? "ROUND ";ROUND
1053 FOR I=0 TO MEN(1)-1:POSITION 4+I,2:? "d";:NEXT I:? " ";:FOR I=0 TO MEN(2)-1:POSITION 31+I,2:? "d";:NEXT I
1054 ? " ";:POKE 77,0
1055 COLOR 33:PLOT 38,23:DRAWTO 0,23:DRAWTO 0,3:DRAWTO 39,3:DRAWTO 39,22:POKE SC+959,1
1060 SOUND 3,0,0,0:RESTORE 2000+((ROUND-1)*10):COLOR 33
1070 READ PP0,PP1:PP0=PP0+SC:PP1=PP1+SC
1080 READ CO,A,B,C,D:IF A<>-1 THEN COLOR CO:PLOT A,B:DRAWTO C,D:GOTO 1080
1090 READ A,B:IF A<>-1 THEN POKE SC+A,B:GOTO 1090
1100 FOR I=1 TO 5:FOR J=0 TO 20:SOUND 0,J,12,10:NEXT J:NEXT I:SOUND 0,0,0,0
1999 TRAP 20:COLOR 32:PLOT 0,0:RETURN
2000 DATA 161,918,33,20,7,20,19,33,15,13,25,13,33,8,9,11,9,33,8,17,11,17,33
2001 DATA 29,9,32,9,33,29,17,32,17,161,9,12,9,14
2002 DATA 161,31,12,31,14,0,-1,0,0,0
2009 DATA 198,6,881,6,253,84,267,84,827,84,813,84,161,104,918,103,-1,0
2010 DATA 198,881,33,19,6,19,20,33,21,6,21,20,33,15,9,15,17,33,25,9,25,17,6,7,10,10,13,6,30,14,33,17
2011 DATA 7,10,14,7,17,7,33,10,30,13,0,-1,0,0,0
2019 DATA 539,124,541,124,411,84,429,84,691,84,709,84,161,6,918,6,198,102,881,101,-1,0
2020 DATA 161,918,33,17,5,22,5,33,17,21,22,21,33,3,10,3,16,33,7,10,7,16,33,32,10,32,16,33,36,10,36,16
2021 DATA 18,10,10,12,10,18,27,10,29,10,18,10,16,12,16,18,27,16,29,16,18,13,7,16,7,18,23,7,25,7,18,13,19,16,19
2022 DATA 18,23,19,25,19,0,-1,0,0,0
2023 DATA 293,81,306,69,773,90,786,67,333,124,373,124,413,67,346,124,386,124,426,90,706,124,746,124,693,124
2024 DATA 733,124,653,69,666,81,444,84,446,84,524,84,526,84,604,84,606,84,473,84,475,84,553,84,555,84,635,84
2025 DATA 633,84,360,0,359,0,720,0,719,0,539,6,540,6,321,1,401,1,318,1,398,1,678,1,758,1,681,1,761,1
2029 DATA 198,6,881,6,161,104,918,103,-1,0
2030 DATA 198,881,33,14,4,14,11,33,14,11,26,11,33,26,11,26,4,33,14,22,14,15,33,14,15,26,15,33,26,15,26,22
2031 DATA 161,5,7,11,7,161,29,7,35,7,161,5,19,11,19,161,29,19,35,19,148,3,11,3,15,148,37,11,37,15,0,-1,0,0,0
2035 DATA 300,6,340,6,740,6,780,6,496,84,498,84,500,84,502,84,504,84,576,84,578,84,580,84,582,84,584,84
2036 DATA 334,124,746,124,552,119,528,119,198,102,881,101,-1,0
2040 DATA 198,881,33,23,6,31,6,33,31,7,34,7,33,34,7,34,11,33,34,11,26,11,33,26,11,26,8,33,23,8,29,8
2041 DATA 33,29,9,32,9,119,18,11,21,11,119,21,11,21,14,119,21,14,18,14,119,18,14,18,11,33,5,15,13,15
2042 DATA 33,13,15,13,18,33,10,18,16,18,33,10,17,7,17,33,5,15,5,19,33,5,19,8,19,33,8,20,16,20
2043 DATA 20,6,11,6,5,20,6,5,12,11,20,12,11,12,5,20,33,21,33,15,20,33,15,27,21,20,27,21,27,15
2044 DATA 38,27,9,28,9,38,27,10,28,10,38,19,12,20,12,38,19,13,20,13,38,11,16,12,16,38,11,17,12,17
2045 DATA 32,0,13,0,14,148,18,18,18,20,148,21,6,21,8
2046 DATA 0,-1,0,0,0,519,0,559,0,481,1,601,1,478,1,598,1,773,66,776,66,303,86,306,86,198,102,881,101,-1,0
2050 DATA 187,890,33,26,4,26,7,33,28,4,28,7,33,9,19,9,22,33,11,19,11,22,33,25,11,25,14,33,27,11,27,14
2051 DATA 33,25,16,25,19,33,27,16,27,19,33,22,14,24,14,33,28,14,30,14,33,22,16,24,16,33,28,16,30,16
2052 DATA 33,8,8,8,11,33,18,8,18,11,33,8,8,9,8,33,17,8,18,8,33,10,6,10,8,33,12,6,12,7,33,14,6,14,7
2053 DATA 33,16,6,16,8,33,12,7,13,7,33,10,10,10,12,33,16,10,16,12,33,12,12,12,14,33,14,12,14,14,33,10,14,11,14
2054 DATA 33,14,14,16,14,20,17,16,17,18,20,19,16,19,18,20,22,8,23,8,161,36,6,36,7,161,31,10,31,11,161,4,16,4,17
2055 DATA 22,22,15,25,15,2,27,15,30,15,13,26,11,26,14,14,26,16,26,19,0,-1,0,0,0
2056 DATA 533,6,626,6,291,77,295,77,449,78,457,78,573,78,417,77,530,86,409,77,241,1,280,0,279,0
2057 DATA 320,0,361,1,319,0,358,1,238,1,536,66,640,0,680,0,639,0,679,0,601,1
2058 DATA 721,1,598,1,718,1,187,100,890,99,-1,0
2060 DATA 161,918,33,2,7,6,7,33,6,9,4,9,33,4,9,4,11,33,2,11,2,7,33,35,16,35,18,33,33,18,35,18,33,37,16,37,20
2061 DATA 33,33,20,37,20,6,8,7,11,10,6,12,17,15,20,6,24,7,27,10,6,28,17,31,20,7,15,7,12,10,7,11,17,8,20
2063 DATA 7,31,7,28,10,7,27,17,24,20,119,15,9,24,18,119,24,9,15,18,0,-1,0,0,0
2064 DATA 323,6,796,6,325,66,326,66,403,78,676,77,716,77,443,78,793,86,794,86,560,0,521,1,601,1,559,0,598,1
2065 DATA 566,118,553,118,518,1,161,104,918,103,-1,0
2070 DATA 198,881,33,6,6,10,6,33,6,6,6,9,33,8,6,8,9,33,10,6,10,9,33,29,6,33,6,33,29,6,29,9,33,31,6,31,9
2071 DATA 33,33,6,33,9,33,6,20,10,20,33,6,20,6,17,33,8,20,8,17,33,10,20,10,17
2072 DATA 33,29,20,33,20,33,29,20,29,17,33,31,20,31,17,33,33,20,33,17,0,-1,0,0,0
2073 DATA 216,98,223,97,258,102,261,104,281,1,320,0,361,1,278,1,319,0,358,1,446,103,448,99,450,101,469,103
2074 DATA 471,99,473,101,418,98,421,97,526,98,528,129,530,97,549,98,551,129,553,97,496,98,498,103,501,101,503,97
2075 DATA 606,102,608,100,610,104,629,102,631,100,633,104,576,98,578,102,581,104,583,97,658,100,661,100
2076 DATA 818,98,821,97,856,98,863,97,287,118,289,118,310,118,312,118,767,118,769,118,790,118,792,118
2077 DATA 721,1,718,1,801,1,798,1,759,0,760,0,198,102,881,101,-1,0
2080 DATA 536,543,32,0,5,0,22,32,39,4,39,21,20,5,13,14,13,20,25,13,34,13,119,19,4,19,22,119,20,4,20,22
2081 DATA 20,14,13,10,9,20,14,13,10,17,20,25,13,29,9,20,25,13,29,17,33,0,23,39,23,20,5,7,1,7,20,5,7,3,5
2082 DATA 20,5,7,3,9,20,34,7,38,7,20,34,7,36,5,20,34,7,36,9,20,5,19,1,19,20,5,19,3,17,20,5,19,3,21
2083 DATA 20,34,19,38,19,20,34,19,36,17,20,34,19,36,21,20,14,7,18,7,20,18,7,16,5,20,18,7,16,9
2084 DATA 20,21,7,25,7,20,21,7,23,5,20,21,7,23,9,20,14,19,18,19,20,18,19,16,17,20,18,19,16,21
2085 DATA 20,21,19,25,19,20,21,19,23,17,20,21,19,23,21
2086 DATA 0,-1,0,0,0,286,118,313,118,766,118,793,118,536,97,543,98,-1,0
10000 RESTORE 10000:CHSET=(PEEK(106)+1)*256:FOR I=0 TO 1023:POKE CHSET+I,PEEK(57344+I):NEXT I
10010 READ A:IF A<0 THEN RETURN
10020 FOR I=0 TO 7:READ B:POKE CHSET+A*8+I,B:NEXT I:GOTO 10010
10030 DATA 1,255,170,170,170,170,170,170,255
10040 DATA 2,24,0,22,196,91,16,68,48
10050 DATA 3,16,2,52,64,66,26,3,32
10060 DATA 4,0,8,4,104,2,20,34,0
10070 DATA 5,0,0,16,36,36,8,0,0
10080 DATA 6,0,24,102,153,102,153,102,24
10090 DATA 27,0,0,40,20,40,20,0,0
10100 DATA 28,0,40,40,68,68,40,40,0
10110 DATA 29,24,0,36,129,129,36,0,24
10120 DATA 30,36,36,129,145,137,129,36,36
10130 DATA 31,165,66,129,0,0,129,66,165
10140 DATA 32,16,145,16,165,165,16,145,16
10150 DATA 97,48,52,34,122,114,52,104,204
10160 DATA 98,24,88,136,188,156,88,44,102
10170 DATA 99,2,25,25,127,25,26,36,36
10180 DATA 100,32,76,76,123,76,44,18,18
10190 DATA 101,20,50,49,109,113,48,88,76
10200 DATA 102,24,24,136,156,186,68,44,102
10210 DATA 103,20,38,70,91,71,6,13,25
10220 DATA 104,48,48,34,114,186,68,104,204
10230 DATA 105,0,0,0,170,0,0,0,0
10240 DATA 106,0,0,0,0,170,0,0,0
10250 DATA 107,8,8,8,8,8,8,8,8
10260 DATA 108,8,8,8,8,8,8,8,8
10270 DATA 109,5,2,5,8,16,32,64,0
10280 DATA 110,0,2,4,8,16,160,64,160
10290 DATA 111,160,64,16,16,8,4,2,0
10300 DATA 112,0,64,32,16,8,5,2,5
10310 DATA 113,40,68,146,36,36,74,40,40
10320 DATA 114,65,136,44,5,104,160,11,34
10330 DATA 115,9,192,20,34,8,32,33,129
10340 DATA 116,0,16,6,32,4,80,0,0
10350 DATA 117,0,8,0,16,42,0,16,0
10360 DATA 118,0,0,0,0,0,0,0,0
10370 DATA 119,0,0,0,0,0,0,0,0
10380 DATA 71,128,32,32,8,8,2,2,0
10390 DATA 70,0,2,2,8,8,32,32,128
10400 DATA 84,0,20,85,85,85,85,20,0
10500 DATA -1
Download
The original program from the Antic disk, to LOAD or ENTER instead of typing it: WARRIOR.BAS.
Credits
- Program listing: Warrior 3000 — program listing (Antic, February 1986 (Vol. 4, No. 10), Game of the Month) — Ken Greiner
- Picture: Round 1: player one at the top left, player two at the bottom right. — Ken Greiner (program); screenshot by the site
- Antic, February 1986 - Vol. 4 No. 10: article (atarimagazines.com) — Ken Greiner, 1986
- Antic disk, February 1986 - Vol. 4 No. 10: WARRIOR.BAS (detokenized listing) — AtariMagazines.com (Kevin Savetz), 1986
