Advertisement
J16D

low-end Struct <--to--> High-end Struct [CLEO]

Apr 5th, 2014
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.51 KB | None | 0 0
  1. {
  2. examples
  3. low-end Struct <--to--> High-end Struct [CLEO]
  4.  
  5. SannyBuilder by Seeman
  6. }
  7.  
  8. /////////////////////-----------------------------------------
  9. {
  10. if - then - end
  11.  
  12. high-end Struct
  13. low-end Struct
  14. }
  15. if
  16. 0AB0: key_pressed 32 // spacebar
  17. then
  18. // key pressed!!! do something and jump to "continue" label
  19. end
  20. // if not key pressed jump directly here.
  21. :continue
  22.  
  23. --------------------------------------------------------------
  24. /// sames as:
  25. if
  26. 0AB0: key_pressed 32 // spacebar
  27. else_jump @continue
  28. // key pressed!!! do something and jump to "continue" label
  29.  
  30. :continue
  31.  
  32. /////////////////////-----------------------------------------
  33. {
  34. if - then -else - end
  35.  
  36. high-end Struct
  37. low-end Struct
  38. }
  39. if
  40. 0AB0: key_pressed 32 // spacebar
  41. then
  42. // key pressed!!! do something and jump to "continue" label
  43. else
  44. // not key pressed!! do something and jump to "continue" label
  45.  
  46. end
  47. :continue
  48.  
  49. --------------------------------------------------------------
  50. /// sames as:
  51. if
  52. 0AB0: key_pressed 32 // spacebar
  53. else_jump @continue
  54. // key pressed!!! do something and jump to "end" label
  55. jump @end
  56.  
  57. :continue
  58. // not key pressed!! do something and jump to "end" label
  59.  
  60. :end
  61.  
  62. /////////////////////-----------------------------------------
  63. {
  64. while - end
  65.  
  66. high-end Struct
  67. low-end Struct
  68. }
  69. while 0AB0: key_pressed 32 // spacebar
  70. wait 0
  71. // while key pressed!!! do something
  72. end
  73. --------------------------------------------------------------
  74. /// sames as:
  75. :start
  76. if
  77. 0AB0: key_pressed 32 // spacebar
  78. else_jump @end
  79. // while key pressed!!! do something
  80. wait 0
  81. jump @start
  82.  
  83. :end
  84.  
  85. /////////////////////-----------------------------------------
  86. {
  87. repeat - end
  88.  
  89. high-end Struct
  90. low-end Struct
  91. }
  92. repeat
  93. wait 0
  94. until 0AB0: key_pressed 32 // spacebar
  95. // key pressed!!! do something after key pressed
  96. --------------------------------------------------------------
  97. /// sames as:
  98. :start
  99. wait 0
  100. 0AB0: key_pressed 32 // spacebar
  101. else_jump @start
  102. // key pressed!!! do something after key pressed
  103.  
  104. /////////////////////-----------------------------------------
  105. {
  106. for - end
  107.  
  108. high-end Struct
  109. low-end Struct
  110. }
  111.  
  112. for 0@ = 1 to 10 // step 1
  113. wait 0
  114. end
  115. 0ACA: show_text_box 0@ // 11 will be displayed
  116. --------------------------------------------------------------
  117. /// sames as:
  118.  
  119. 0@ = 1
  120. :start
  121. wait 0
  122. 0@ += 1
  123. if
  124. 0@ > 10
  125. jf @start
  126. 0ACA: show_text_box 0@ // 11 will be displayed
  127.  
  128. /////////////////////-----------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement