diff --git a/Games/move-cube/index.html b/Games/move-cube/index.html new file mode 100644 index 0000000..dc7df65 --- /dev/null +++ b/Games/move-cube/index.html @@ -0,0 +1,11 @@ + + + + Cube mover + + + + + + + \ No newline at end of file diff --git a/Games/move-cube/js/draw.js b/Games/move-cube/js/draw.js new file mode 100644 index 0000000..75fe68d --- /dev/null +++ b/Games/move-cube/js/draw.js @@ -0,0 +1,17 @@ +function setup() { + createCanvas(40, 40); +} + +function draw() { + background(220); + //For (var BEGIN; END; INTERVAL){ + //DO SOMETHING } + for (var x = 0; x < width; x += width / 40) { + for (var y = 0; y < height; y += height / 40) { + stroke(0); + strokeWeight(1); + line(x, 0, x, height); + line(0, y, width, y); + } + } +} \ No newline at end of file