Arquivos para a tag: pong

Aula 04 – Parcial Pong

24 março, 2009 (18:11) | games | Por: admin

Gerado na aula de 25/3/2009 - Turma B float xB,yB,vBx,vBy; //define variavel int pontos; void setup() { size(400,300); noCursor(); xB=width/2; // inicializar variavel yB=height/2; vBx=1; // 1 pixel / frame vBy=1; // 1 pixel / frame } void draw() { xB = xB + vBx; yB = yB + vBy; if(yB>height) [...]