Posts by João Pedro Malheiro • 9 points
1 post
-
0
votes1
answer36
viewsQ: I made a square that moves everywhere and I’d like to set some boundaries to where you can walk
Briefly I would like to define limits where the square can walk, I send my code and I appreciate any help. var topo=50; var esq = 200; function cima(){ topo -= 5;…