xxxxxxxxxx
21
class Bullet {
constructor(){
this.d=15
this.speed=6
this.x=x+widths/2
this.y=y
}
move(){
this.y=this.y+this.speed
}
show(){
circle(this.x,this.y,this.d)
}
shoot(){
if (keyIsDown(DOWN_ARROW)) {
count=count+1
}
}
}