1.3 ScratchCode.
ScratchCode is the main programming language of this engine. It was developed by me,for this engine.The syntax is very simple.
Example:
function argument,argument
This is an example code:
print “Hello ,world!”
The function:’print’ is not a built-in.Built-in function start with an “@”.They are also called “main” functions.This is the table of all main functions.The arguments are in their correct order.
‘@func’ - Indicates the start of a function.Arguments:’func_name’ - Name of the function.
‘@func_end’ - Indicates the end of a function.Arguments:None.
‘@if’ - Indicates the start of an if.Arguments:’value’ - Value to check.A bool.
‘@end’ - Indicates the end of an if.Arguments:None.
‘@math’ -Does math.Arguments:’var_name’ - Name of the variable that the function will return to,’1_operant’ -The first operant,’var_name’ - Name of the variable that the function will return to,’typeof’ - Type of math operation,’2_operant’ -The second operant.
‘@tostr’ - Converts anything into a string.Arguments:’var_name’ - Name of the variable that the function will return to,’str_val’ - Thing to convert into a string.
‘@fastflag’ - Sets a FastFlag.Arguments:’flag_name’ - Name of the flag,’flag_bool’ - Value you want to set as the fastflag.
‘@run_func’ -Runs a function.Arguments:’func_name’ -Function to run to.