set romsize 16k missile0height=1:missile0y = 250 let l=0 rem Player sprite player0: %01111100 %01110000 %01111000 %11111111 %11111111 %01111000 %01110000 %01111100 end rem Asteroid sprite player1:: %00001100 %00011110 %01111111 %11111111 %11111111 %11111111 %01111110 %00111100 end rem set initial positions player0x=1:player0y=50 player1x=150:player1y=50 gamestart rem increment loop number if l=1 then l=2 l=l+1 rem set sprite colours COLUP0 = 144 COLUP1 = 4 rem set up missile NUSIZ0 = $20 rem draw screen drawscreen rem check if missile off screen of still in motion if missile0x>159 then missile0y=255: goto jump1 missile0x = missile0x + 2 jump1 rem joystick inputs if joy0up then player0y=player0y-1 if joy0down then player0y=player0y+1 if player0y<9 then player0y=9 if player0y>84 then player0y=84 if joy0fire then missile0x=player0x+2: missile0y=player0y-4 rem temp asteroid code if l=1 || player1x=0 then player1x=150: player1y=(rand&76)+9: goto jump2 player1x=player1x-1 jump2 goto gamestart