-
Notifications
You must be signed in to change notification settings - Fork 0
Examples
Mistium edited this page Aug 13, 2024
·
3 revisions
a script that iterates a variable by 1, 8 million times in one second
event onload {
frames = 0
repeat (8000000) {
frames += 1
}
exit()
}
an update loop that does a similar thing
event update {
frames += 1
if (frames > 10000) {
exit()
}
}
event onload {
frames = 0
}
A script that logs the mouse x and mouse y whenever the mouse moves
event mouse onmove {
mouse = window.mouse
log(mouse.x,mouse.y)
}