Skip to content

Instantly share code, notes, and snippets.

@ajc2
Last active June 4, 2018 21:42
Show Gist options
  • Save ajc2/dc95920d5c34c368dc8a15cf2ee4be1f to your computer and use it in GitHub Desktop.
Save ajc2/dc95920d5c34c368dc8a15cf2ee4be1f to your computer and use it in GitHub Desktop.
SCRIPT-8
/*
* Snake clone
* snail_ 2018
*/
script8.initialState = {
score: 0
}
script8.update = (state, input, elapsed) => {
}
script8.draw = state => {
clear()
// Draw the border
}
{
"0": [
"00000000",
"00000000",
"00000000",
"00000000",
"00000000",
"00000000",
"00000000",
"00000000"
],
"1": [
"11111111",
"11111111",
"11111111",
"11111111",
"11111111",
"11111111",
"11111111",
"11111111"
],
"2": [
"3333 333",
"3333 333",
"3333 333",
" ",
"33 33333",
"33 33333",
"33 33333",
" "
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment