Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- examples
- low-end Struct <--to--> High-end Struct [CLEO]
- SannyBuilder by Seeman
- }
- /////////////////////-----------------------------------------
- {
- if - then - end
- high-end Struct
- low-end Struct
- }
- if
- 0AB0: key_pressed 32 // spacebar
- then
- // key pressed!!! do something and jump to "continue" label
- end
- // if not key pressed jump directly here.
- :continue
- --------------------------------------------------------------
- /// sames as:
- if
- 0AB0: key_pressed 32 // spacebar
- else_jump @continue
- // key pressed!!! do something and jump to "continue" label
- :continue
- /////////////////////-----------------------------------------
- {
- if - then -else - end
- high-end Struct
- low-end Struct
- }
- if
- 0AB0: key_pressed 32 // spacebar
- then
- // key pressed!!! do something and jump to "continue" label
- else
- // not key pressed!! do something and jump to "continue" label
- end
- :continue
- --------------------------------------------------------------
- /// sames as:
- if
- 0AB0: key_pressed 32 // spacebar
- else_jump @continue
- // key pressed!!! do something and jump to "end" label
- jump @end
- :continue
- // not key pressed!! do something and jump to "end" label
- :end
- /////////////////////-----------------------------------------
- {
- while - end
- high-end Struct
- low-end Struct
- }
- while 0AB0: key_pressed 32 // spacebar
- wait 0
- // while key pressed!!! do something
- end
- --------------------------------------------------------------
- /// sames as:
- :start
- if
- 0AB0: key_pressed 32 // spacebar
- else_jump @end
- // while key pressed!!! do something
- wait 0
- jump @start
- :end
- /////////////////////-----------------------------------------
- {
- repeat - end
- high-end Struct
- low-end Struct
- }
- repeat
- wait 0
- until 0AB0: key_pressed 32 // spacebar
- // key pressed!!! do something after key pressed
- --------------------------------------------------------------
- /// sames as:
- :start
- wait 0
- 0AB0: key_pressed 32 // spacebar
- else_jump @start
- // key pressed!!! do something after key pressed
- /////////////////////-----------------------------------------
- {
- for - end
- high-end Struct
- low-end Struct
- }
- for 0@ = 1 to 10 // step 1
- wait 0
- end
- 0ACA: show_text_box 0@ // 11 will be displayed
- --------------------------------------------------------------
- /// sames as:
- 0@ = 1
- :start
- wait 0
- 0@ += 1
- if
- 0@ > 10
- jf @start
- 0ACA: show_text_box 0@ // 11 will be displayed
- /////////////////////-----------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement