Skip to content

Instantly share code, notes, and snippets.

@gabrielflorit
Created October 22, 2019 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielflorit/5ebdeaa238df42a0bb57e4ed3b07f9a1 to your computer and use it in GitHub Desktop.
Save gabrielflorit/5ebdeaa238df42a0bb57e4ed3b07f9a1 to your computer and use it in GitHub Desktop.
SCRIPT-8
init = state => {
}
update = (state, input, elapsed) => {
}
drawActors = (state, fade) =>
state.actors && state.actors.forEach(actor =>
sprite(
actor.x,
actor.y,
actor.sprite,
fade ? actor.trailBrighten || -3 : actor.brighten,
actor.flipH,
actor.flipV
)
)
draw = state => {
camera()
clear()
}
{
"iframeVersion": "0.1.258",
"lines": [
22,
0,
0,
0,
0,
0,
0,
0
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment