Skip to content

Instantly share code, notes, and snippets.

@carbide-public
Created August 1, 2017 01:15
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 carbide-public/b4d3efd5f8805f61929823df7a4d620d to your computer and use it in GitHub Desktop.
Save carbide-public/b4d3efd5f8805f61929823df7a4d620d to your computer and use it in GitHub Desktop.
untitled
var field = [
[0,0,0,0,0],
[0,0,0,0,0],
[0,0,0,0,0],
[0,0,0,0,0],
[0,0,0,0,0]
];
for(var y=0; y < 5; y++){
for(var x=0; x < 5; x++){
var px = x * 20 + y * 20;
var py = x * 9 - y * 9;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment