Jump to content
IGNORED

player1 problems


atari2600land

Recommended Posts

Tell me why this code doesn't work:

10 set smartbranching on
1000 x = 30 : y = 60 : a = 150 : b = 60
1005 player0x = x : player0y = y : player1x = a : player1y = b
1010 COLUBK = 28 : COLUPF = 0 : COLUP0 = 64 : COLUP1 = 128
1013 player0:
 %11111000
 %11111000
 %00110000
 %00111110
 %00110000
 %11111000
 %11111000
 %00000000
end
1016 player1:
 %00011111
 %00011111
 %00001100
 %01111100
 %00001100
 %00011111
 %00011111
 %00000000
end
1025 drawscreen
1030 if joy0left then x = x - 1
 if x<30 then x = 30
 if x>150 then x = 150
1040 if joy0right then x = x + 1
 if x<30 then x=30
 if x>150 then x=150
1050 if joy0up then y=y-1
 if y<10 then y=10
 if y>85 then y=85
1060 if joy0down then y=y+1
 if y<10 then y=10
 if y>85 then y=85
1070 if joy1left then a = a - 1
 if a<30 then a = 30
 if a>150 then a = 150
1080 if joy1right then a = a + 1
 if a<30 then a=30
 if a>150 then a=150
1090 if joy1up then b=b-1
 if b<10 then b=10
 if b>85 then b=85
1110 if joy1down then b=b+1
 if b<10 then b=10
 if b>85 then b=85

1120 goto 1005

It doesn't know what joy1left, joy1right, joy1down, or joy1up is!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...