Skip to content

Instantly share code, notes, and snippets.

@gabrielflorit
Created February 23, 2019 04:12
Show Gist options
  • Save gabrielflorit/c4b607c90ac3cfb9ec4bad114eca6811 to your computer and use it in GitHub Desktop.
Save gabrielflorit/c4b607c90ac3cfb9ec4bad114eca6811 to your computer and use it in GitHub Desktop.
SCRIPT-8
initialState = {
actors: [
{
name: 'player',
x: 0,
y: 0,
sprite: 0,
flipH: true
}
]
}
draw = (state) => {
clear()
rectStroke(0, 0, 8, 8, 6)
drawActors(state)
}
{
"lines": [
17,
0,
0,
0,
0,
0,
0,
0
]
}
{
"0": [
" ",
" ",
" 00 ",
" 0 ",
" 0 00 ",
" 0 ",
" 0 ",
" 000 "
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment