xPositions
, yPositions
, speeds
, etc arrays you'll simply have 1 raindrops
array, and each raindrop will have:x
propertyy
propertyspeed
propertysize
property to each object and randomise it at the start.color
property to each object - you can make a random colour like this: color(random(255), random(255), random(255))
x
y
speed
colour
size
x
y
size
speed
(if you want some to move at different speeds)random()
function for the x position, but with a fixed y positionclicked
property to each bubble object.dist(x1, x2, x2, y2)
to find the distance between two points.draw()
function.drawFace1(x, y, size)
, drawFace2(x, y, size)
, drawFace3(x, y, size)
and somehow choose between them for each snowman/snow-womanx
and y
property, and a xSpeed
and ySpeed
property. (To move the star increment x
by xSpeed
, and y
by ySpeed
)