HeroMan - Løsningseksempel - Delopgave 4
Tilret så heroMan ikke kan bevæge sig uden for canvas, således at man hele tiden kan se hele den gule cirkel.
Sådan kan koden se ud: https://editor.p5js.org/JensValdez/sketches/iMRNyipiU
HeroMan - Solution Example - Subtask 4
Adjust so that heroMan cannot move outside the canvas, so that you can always see the entire yellow circle.
A possible solution in code:https://editor.p5js.org/JensValdez/sketches/iMRNyipiU