friend packman |
|||||
---|---|---|---|---|---|
작성자 | 김용남 | 등록일 | 18.11.08 | 조회수 | 86 |
int x1 = 0; int x2 = 0; int y2 = 0; int xspeed1 = 3; int xspeed2 = 4; int size = 50; void setup() { x1 = int(random(width)); y1 = int(random(height)); } void draw() { background(0); if(frameCount % 20 < 10) { x1 = x1 + xspeed1; x2 = x2 + xspeed2; if(y1 < 0 || y1 > 480) { if(x2 < 0 || x2 > 640) { if(y2 < 0 || y2 > 480) { } |
이전글 | mouse packman |
---|---|
다음글 | feeding packman |