Skip to content

Instantly share code, notes, and snippets.

@Kethku
Created March 9, 2019 05:49
Show Gist options
  • Save Kethku/81c5b5441236ce9436604c2f6b228107 to your computer and use it in GitHub Desktop.
Save Kethku/81c5b5441236ce9436604c2f6b228107 to your computer and use it in GitHub Desktop.
SCRIPT-8
let counter = 0
draw = () => {
clear()
for (let x = 0; x < 128; x += 2) {
for (let y = 0; y < 128; y += 2) {
sprite((x + counter) % 128, y, 0)
}
}
counter++
}
{
"lines": [
10,
0,
0,
0,
0,
0,
0,
0
]
}
{
"0": [
"01 ",
"23 ",
" ",
" ",
" ",
" ",
" ",
" "
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment