Jump to content
IGNORED

Jumping - new topic originating from Mr. Flanksteak


atari2600land

Recommended Posts

I studied the matario code and got this...

10 set smartbranching on
20 a=0 : rem vertical position
30 b=0 : rem jump height
40 d=0 : rem sprite def
50 e=0 : rem framecounter
60 rem define player x, y pos
65 x=66 : y=66 : t=0
68 player0:
 %00101000
 %00101000
 %00010000
 %00111000
 %00010000
 %00111000
 %00101000
 %00111000
end
70 drawscreen
75 player0x = x : player0y = y
80 rem define colors/playfield
92 COLUP1= 0 : COLUBK = 15 : COLUPF = 7
95 if joy0fire then a=5
96 if a=5 then y=y-2 : b=b+1
100 if b > 25 then a=6 : b=0
110 if a=6 then y=y+2
130 goto 70

...but there's no ground! If I'm missing something, please tell me what! BTW, the t variable isn't being used.

Edited by atari2600land
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...