Advertisement
TimJSwan

Tim Swan's ZELDAP in ti-Basic

May 7th, 2014
2,192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. Code for Zelda posted on May 7th 2014 after Episode 17 upon YouTube comment request.
  2. see also ZELDA: http://pastebin.com/rxKbWnY0
  3. see also ZELDAO: http://pastebin.com/8vkq4a9F
  4. ZELDAP:
  5. If A=21
  6. Then
  7. 0->A
  8. ClrHome
  9. Output(1,4,”INVENTORY”
  10. 1->J
  11. 1->I
  12. For(B,1,3
  13. For(C,1,4
  14. Output(3+2(B-1),4+3(C-1),[B](B,C)
  15. End
  16. End
  17. While A≠21
  18. Output(3+2(J-1),3+3(I-1),”(
  19. Output(3+2(J-1),5+3(I-1),”(
  20. 0->A
  21. Repeat A
  22. getkey->A
  23. End
  24. Output(3+2(J-1),3+3(I-1),” “
  25. Output(3+2(J-1),5+3(I-1),” “
  26. If A=26
  27. Then
  28. I+1->I
  29. If I=5
  30. 1->I
  31. End
  32. If A=24
  33. Then
  34. I-1->I
  35. If I=0
  36. 4->I
  37. End
  38. If A=25
  39. Then
  40. J-1->J
  41. If J=0
  42. 3->J
  43. End
  44. If A=34
  45. Then
  46. J+1->J
  47. If J=4
  48. 1->J
  49. End
  50. End
  51. ClrHome
  52. prgmZELDAO
  53. End
  54. see also ZELDA: http://pastebin.com/rxKbWnY0
  55. see also ZELDAO: http://pastebin.com/8vkq4a9F
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement