-
-
Notifications
You must be signed in to change notification settings - Fork 17
OASMv6
totv int
- define the number of variables to be used in the script (run first)
setv index1 data
- set the variable at the index int
svto index1 index2
- copies the data at index2 into index1
chav index1 index2
- set index1 to index1 + index2
subv index1 index2
- set index1 to index1 - index2
mulv index1 index2
- set index1 to index1 * index2
divv index1 index2
- set index1 to index1 / index2
modv index1 index2
- set index1 to index1 % index2
sqrt index1
- set index1 to the square root of itself
sinv index1
- set index1 to the sine of itself
cosv index1
- set index1 to the cosine of itself
tanv index1
- set index1 to the tangent of itself
labl name
- creates a label that can be jumped to
jump line/label_name
- always jump to a line no matter what
gthn index1 index2 line/label_name
if the data in the var at index1 is greater than the data in the var at index2, jump to line
lthn index1 index2 line/label_name
if the data in the var at index1 is less than the data in the var at index2, jump to line
equl index1 index2 line/label_name
if the data in the var at index1 is equal to the data in the var at index2, jump to line
ngth index1 index2 line/label_name
if the data in the var at index1 is not greater than the data in the var at index2, jump to line (equivalent to less than or equal)
nlth index1 index2 line/label_name
if the data in the var at index1 is not less than the data in the var at index2, jump to line (equivalent to greater than or equal)
pend
- places the pen on the canvas
penu
- lifts the pen from the canvas
pene
- clears the canvas
penc index1
- sets the pen colour to a variable index (supports hex codes)
pens index1
- sets the pen size to a variable index
setx index1
- makes the pen go to a x position at a variable index
sety index1
- makes the pen go to a y position at a variable index
setp index1 index2
- set position (makes the pen go to a x,y position)
getd mousepos index1 index2
- puts the mousex and mousey into index1 and index2 respectively
getd mouseclick index1
- puts whether the mouse left button is down into index 1 (value of 1 if mouse down, value of 0 if mouse up)
getd key_a index1
- puts whether the a key is pressed into index1 (value of 1 if key pressed, value of 0 if key not pressed)
^^ this works with any key
prnt index
- print the data in a variable to console
originOS is a web desktop gui with a self contained file system, programming languages, internet system and a whole lot of stuff an os should be able to do Use originOS here