1 function drop(x, y, traj, image, effect){
  2 this.x = x;
  3 this.y = y;
  4 this.traj = traj;
  5 this.image = image;
  6 this.effect = effect;
  7 this.blit = function(){this.image.blit(this.x, this.y)}
  8 this.move = function(){this.y+=this.traj}
  9 }
 10 
 11 function incrementballspeed() {for(var f = 0; f<balls.length; f++){balls[f].speed++}}
 12 function decrementballspeed() {for(var f = 0; f<balls.length; f++){balls[f].speed--}}
 13 function makeballunstoppable(){var rand = Math.floor(Math.random())*balls.length; balls[rand].unstoppable = true}
 14 
 15 
 16 function processDrops(){
 17 var i = 0;
 18 	while(i<drops.length){
 19 	drops[i].move();
 20 	drops[i].blit();
 21 	var destroy = false;
 22 		if((drops[i].y+16>GetScreenHeight()-26)){
 23 		for(var e = 0; e<paddles.length; e++){
 24 			if((drops[i].x-8>paddles[e].x)&&(drops[i].x-8<paddles[e].x+paddles[e].size)){
 25 			score+=100;
 26 			drops[i].effect();
 27 			destroy = true;
 28 			}
 29 			}
 30 	}
 31 	if(destroy){drops.splice(i, 1)}
 32 	else {i++}
 33 	}
 34 
 35 }