From 7f82720354d45a0fd3a07acf8a1cd0be3dd4833f Mon Sep 17 00:00:00 2001 From: Boof <97455552+hexahigh@users.noreply.github.com> Date: Mon, 27 Mar 2023 11:59:10 +0200 Subject: [PATCH] update --- Games/move-cube/js/draw.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Games/move-cube/js/draw.js b/Games/move-cube/js/draw.js index 3046a03..a3169cf 100644 --- a/Games/move-cube/js/draw.js +++ b/Games/move-cube/js/draw.js @@ -2,8 +2,8 @@ function setup() { createCanvas(windowWidth, windowHeight); } -var rectX = 200; -var rectY = 200; +var rectX = center(); +var rectY = center(); function draw() { background(220);