This Gist was automatically created by Carbide, a free online programming environment.
Created
August 1, 2017 01:15
-
-
Save carbide-public/b4d3efd5f8805f61929823df7a4d620d to your computer and use it in GitHub Desktop.
untitled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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