Skip to content

Instantly share code, notes, and snippets.

@nicolasdelfino
Last active April 9, 2017 21:36
Show Gist options
  • Save nicolasdelfino/ade32084d71fcd422373e7834330f278 to your computer and use it in GitHub Desktop.
Save nicolasdelfino/ade32084d71fcd422373e7834330f278 to your computer and use it in GitHub Desktop.
A basic tile map for Retanx
export const Map = function() {
this.getTiles = () => {
return [
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 0, 0, 0, 0, 0, 0, 0, 0, 2,
2, 1, 0, 0, 0, 2, 1, 0, 0, 2,
0, 0, 0, 0, 0, 0, 1, 0, 0, 2,
0, 0, 0, 0, 1, 1, 1, 0, 0, 2,
0, 0, 0, 0, 0, 0, 0, 0, 0, 2,
2, 2, 0, 2, 2, 2, 0, 0, 0, 2,
2, 0, 0, 0, 0, 0, 0, 0, 0, 2,
0, 0, 0, 0, 0, 0, 0, 0, 0, 2,
0, 0, 0, 0, 0, 0, 0, 0, 0, 2,
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment