Advertisement
Shaun_B

Commodore 64 smooth y scroller in BASIC

May 20th, 2018
3,234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XBasic 0.39 KB | None | 0 0
  1. 0 def fn y(p)=(peek(53265)and 240)or p
  2. 1 print chr$(147)
  3. 2 let m=7
  4. 3 let d=-1
  5. 4 poke 53280,peek(53281)
  6. 5 poke 53265,fn y(m)
  7. 6 poke 56334,peek(56334)and 254
  8. 7 let a$="EDCFRFCDEDCFRFCDEDCFRFCDEDCFRFCDEDCFRFCD"
  9. 8 wait 53265,128,80:print chr$(19); chr$(17); a$
  10. 9 let a$=right$(a$, 39)+left$(a$, 1)
  11. 10 wait 53265,128,80:poke 53265,fn y(m)
  12. 11 let m=m+d
  13. 12 if m=0 or m=7 then let d=-d
  14. 13 go to 8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement