You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 25, 2019. It is now read-only.
In the first "Introduction" chapter, there is this piece of code to ascertain the next step of the Walker:
void step() {
float stepx = random(-1, 1);
float stepy = random(-1, 1);
x += stepx;
y += stepy;
}
For some reason, the next step is always drawn relatively to the top-left of current location and the Walker heads in the general direction towards the top-left of the window. Some explanation about why the Walker's behaving like that would be very much appreciated!
The text was updated successfully, but these errors were encountered:
In the first "Introduction" chapter, there is this piece of code to ascertain the next step of the Walker:
For some reason, the next step is always drawn relatively to the top-left of current location and the Walker heads in the general direction towards the top-left of the window. Some explanation about why the Walker's behaving like that would be very much appreciated!
The text was updated successfully, but these errors were encountered: