tjferry14 / Cloud-Jump-2

Expanding on the original Cloud Jump.
7 stars 6 forks source link

Background shows layer.frame is larger than cloud #37

Closed tjferry14 closed 10 years ago

tjferry14 commented 10 years ago

The extra pixels make placement of enemy on top of clouds and collision detection a bit clumsy.

cclauss commented 10 years ago

The PIL bounding box is much larger than cloud image. Setting the cloud's background attribute makes this visible.

This extra surface area around the cloud makes it: 1) much easier for the player to land on a cloud 2) more difficult to make the bounce off a cloud look consistent 3) more difficult to make enemy placement on clouds look consistent