1
나는 90 픽셀마다 그리드를 그리는 함수를 가지고 있는데, 이것을 호출하면 화면에 아무 것도 출력하지 않는다.함수가 호출 되더라도 호출되지 않고 있습니까?
void poles() {
stroke(0, 0, 255);
fill(0, 0, 255);
strokeWeight(5);
int polelocationX=90;
int polelocationY=90;
for (polelocationX=90; polelocationX<721; polelocationX+=90) {
for (polelocationY=90; polelocationY<721; polelocationY+=90) {
ellipse(polelocationX, polelocationY, 5, 5);
}
}
}
void draw() {
background(0);
poles();
strokeWeight(1);
collisionDetection();
fizzyX+=movementX;
fizzyY+=movementY;
drawFizzy(fizzyX, fizzyY, fizzyRot);
}
당신이 올바른 방향으로 날 가리 대신 나에게 답을 이야기 할 수 있다면이 그것을 감사 내가 ID를 만들고있어 단지 바보 같은 실수 그래서 만약 또한이 과제는 다음과 같습니다 여기에 관련 코드입니다 .
우리가 실제로 실행할 수있는 [mcve]로 코드를 게시하십시오. 즉, collisionDetection() 및 drawFizzy()에 대한 추가 호출을 꺼내 실행했을 때 문제가 보이는지 확인하십시오. 당신의 코드. –