-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathgdsl.txt
199 lines (192 loc) · 16 KB
/
gdsl.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
UNARY OPERATORS
VARIANT OPCODE INPUT | FIELDS
==========================|=============
Not not OPERAND |
Length length STRING |
Round round NUM |
Abs mathop ... | OPERATOR=abs
Floor ... ... | ...=floor
Ceil ... ... | ...=ceiling
Sqrt ... ... | ...=sqrt
Sin ... ... | ...=sin
Cos ... ... | ...=cos
Tan ... ... | ...=tan
Asin ... ... | ...=asin
Acos ... ... | ...=acos
Atan ... ... | ...=atan
Ln ... ... | ...=ln
Log ... ... | ...=log
AntiLn ... ... | ...=e ^
AntiLog ... ... | ...=10 ^
Minus~
BINARY OPERATORS
VARIANT OPCODE LHS RHS
=======================================
Add add NUM1 NUM2
Sub subtract ... ...
Mul multiply ... ...
Div divide ... ...
Mod mod ... ...
Lt lt OPERAND1 OPERAND2
Gt gt ... ...
Eq equals ... ...
And and ... ...
Or or ... ...
Join join STRING1 STRING2
In contains STRING2 STRING1
Of letter_of STRING LETTER
Le~
Ge~
Ne~
FloorDiv~
BLOCKS
----------------------------------------------------------------------------------------------------
VARIANT OPCODE ARGS | FIELDS | MENU (For now, only one menu is supported)
[motion]=========================================================|==========================|=======
move movesteps STEPS | |
turn_left turnleft DEGREES | |
turn_right turnright ... | |
goto_random_position goto | | TO:motion_goto_menu=_random_
goto_mouse_pointer ... | | ...=_mouse_
goto ... TO | | ...=_random_
goto gotoxy X,Y | |
glide glidesecstoxy X,Y,SECS | |
glide_to_random_position glideto SECS | | TO:motion_glideto_menu=_random_
glide_to_mouse_pointer ... ... | | ...=_mouse_
glide ... TO,SECS | | ...=_random_
point_in_direction pointindirection DIRECTION | |
point_towards_mouse_pointer pointtowards | | TOWARDS:motion_pointtowards_menu=_mouse_
point_towards_random_direction ... | | ...=_random_
point_towards ... TOWARDS | | ...=_random_
change_x changexby DX | |
set_x setx X | |
change_y changeyby DY | |
set_y sety Y | |
if_on_edge_bounce ifonedgebounce | |
set_rotation_style_left_right setrotationstyle | STYLE=left-right |
set_rotation_style_do_not_rotate ... | ...=don't rotate |
set_rotation_style_all_around ... | ...=all around |
[looks]==========================================================|==========================|
say sayforsecs MESSAGE,SECS | |
think thinkforsecs ... | |
say say MESSAGE | |
think think ... | |
switch_costume switchcostumeto COSTUME | | COSTUME:looks_costume=make gh issue if this bothers u
next_costume nextcostume | |
switch_backdrop switchbackdropto BACKDROP | | BACKDROP:looks_backdrops=next backdrop
previous_backdrop switchbackdropto | | BACKDROP:looks_backdrops=previous backdrop
random_backdrop switchbackdropto | | BACKDROP:looks_backdrops=random backdrop
next_backdrop nextbackdrop | |
set_size setsizeto SIZE | |
change_size changesizeby CHANGE | |
change_color_effect changeeffectby ... | EFFECT=COLOR |
change_fisheye_effect ... ... | ...=FISHEYE |
change_whirl_effect ... ... | ...=WHIRL |
change_pixelate_effect ... ... | ...=PIXELATE |
change_mosaic_effect ... ... | ...=MOSAIC |
change_brightness_effect ... ... | ...=BRIGHTNESS |
change_ghost_effect ... ... | ...=GHOST |
set_color_effect seteffectto VALUE | ...=COLOR |
set_fisheye_effect ... ... | ...=FISHEYE |
set_whirl_effect ... ... | ...=WHIRL |
set_pixelate_effect ... ... | ...=PIXELATE |
set_mosaic_effect ... ... | ...=MOSAIC |
set_brightness_effect ... ... | ...=BRIGHTNESS |
set_ghost_effect ... ... | ...=GHOST |
clear_graphic_effects cleargraphiceffects | |
show show | |
hide hide | |
goto_front gotofrontback | FRONT_BACK=front |
goto_back ... | ...=back |
go_forward goforwardbackwardlayers NUM | FORWARD_BACKWARD=forward |
go_backward ... ... | ...=backward |
[sound]==========================================================|==========================|
play_sound_until_done playuntildone SOUND_MENU | | SOUND_MENU:sound_sounds_menu=make gh issue if this bothers u
start_sound play ... | | ...=make gh issue if this bothers u
stop_all_sounds stopallsounds | |
change_pitch_effect changeeffectby VALUE | EFFECT=PITCH |
change_pan_effect ... ... | ...=PAN |
set_pitch_effect seteffectto ... | ...=PITCH |
set_pan_effect ... ... | ...=PAN |
change_volume changevolumeby VOLUME | |
set_volume setvolumeto ... | |
clear_sound_effects cleareffects | |
[event]==========================================================|==========================|
broadcast broadcast BROADCAST_INPUT | |
broadcast_and_wait broadcastandwait BROADCAST_INPUT | |
[control]========================================================|==========================|
wait wait DURATION | |
wait_until wait_until CONDITION | |
stop_all stop | STOP_OPTION=all |
stop_this_script ... | ...=this script |
stop_other_scripts ... | ...=other scripts in sprite|
delete_this_clone delete_this_clone | |
clone create_clone_of | | CLONE_OPTION:control_create_clone_of_menu=_myself_
clone ... CLONE_OPTION | | ...=_myself_
[sensing]========================================================|==========================|
ask askandwait QUESTION | |
set_drag_mode_draggable setdragmode | DRAG_MODE=draggable |
set_drag_mode_not_draggable ... | ...=not draggable |
reset_timer resettimer | |
[pen]============================================================|==========================|
erase_all clear | |
stamp stamp | |
pen_down penDown | |
pen_up penUp | |
set_pen_color setPenColorToColor COLOR | |
change_pen_size changePenSizeBy SIZE | |
set_pen_size setPenSizeTo ... | |
set_pen_hue setPenColorParamTo VALUE | | COLOR_PARAM@colorParam:pen_menu_colorParam=color
set_pen_saturation setPenColorParamTo VALUE | | COLOR_PARAM@colorParam:pen_menu_colorParam=saturation
set_pen_brightness setPenColorParamTo VALUE | | COLOR_PARAM@colorParam:pen_menu_colorParam=brightness
set_pen_transparency setPenColorParamTo VALUE | | COLOR_PARAM@colorParam:pen_menu_colorParam=transparency
change_pen_hue changePenColorParamBy VALUE | | COLOR_PARAM@colorParam:pen_menu_colorParam=color
change_pen_saturation changePenColorParamBy VALUE | | COLOR_PARAM@colorParam:pen_menu_colorParam=saturation
change_pen_brightness changePenColorParamBy VALUE | | COLOR_PARAM@colorParam:pen_menu_colorParam=brightness
change_pen_transparency changePenColorParamBy VALUE | | COLOR_PARAM@colorParam:pen_menu_colorParam=transparency
[music]==========================================================|==========================|
rest restForBeats BEATS | |
set_tempo setTempo TEMPO | |
change_tempo changeTempo ... | |
REPORTERS
----------------------------------------------------------------------------------------------
VARIANT OPCODE ARGS | FIELDS | MENUS
[motion]=========================================================|====================|
x_position xposition | |
y_position yposition | |
direction direction | |
[looks]==========================================================|====================|=
size size | |
costume_number costumenumbername | NUMBER_NAME=number |
costume_name ... | ...=name |
backdrop_number backdropnumbername | ...=number |
backdrop_name ... | ...=name |
[sound]==========================================================|====================|=
volume volume | |
[sensing]========================================================|====================|=
distance_to_mouse_pointer distanceto | | DISTANCETOMENU:sensing_distancetomenu=_mouse_
distance_to distanceto DISTANCETOMENU | | DISTANCETOMENU:sensing_distancetomenu=_mouse_
touching_mouse_pointer touchingobject | | TOUCHINGOBJECTMENU:sensing_touchingobjectmenu=_mouse_
touching_edge touchingobject | | TOUCHINGOBJECTMENU:sensing_touchingobjectmenu=_edge_
touching touchingobject TOUCHINGOBJECTMENU| | TOUCHINGOBJECTMENU:sensing_touchingobjectmenu=_mouse_
key_pressed keypressed KEY_OPTION | | KEY_OPTION:sensing_keyoptions=any
mouse_down mousedown | |
mouse_x mousex | |
mouse_y mousey | |
loudness loudness | |
timer timer | |
current_year current | CURRENTMENU=YEAR |
current_month ... | ...=MONTH |
current_date ... | ...=DATE |
current_day_of_week ... | ...=DAYOFWEEK |
current_hour ... | ...=HOUR |
current_minute ... | ...=MINUTE |
current_second ... | ...=SECOND |
days_since_2000 dayssince2000 | |
username username | |
touching_color touchingcolor COLOR | |
color_is_touching_color coloristouchingcolor COLOR,COLOR2| |
answer answer | |
[operator]=======================================================|====================|=
random random FROM,TO | |
contains contains STRING1,STRING2| |