city41 / breakouts

A collection of JS engine implementations of Breakout
http://jsbreakouts.mattgreer.dev
542 stars 117 forks source link

Crafty: The ball is prisoner of the dying brick #5

Open DjebbZ opened 11 years ago

DjebbZ commented 11 years ago

In the craftyjs implementation, the ball touched a brick then the wall close to it then overlapped the dying brick. Problem : the dying brick animation stopped at this point and the got stucked inside, as if the dying brick still got collisions. Here's 2 screenshots, hoping this makes the explanation clear. Screen shot 2013-01-13 at 15 03 25 Screen shot 2013-01-13 at 15 07 17

city41 commented 11 years ago

Does this happen for you all the time? Are you on a desktop or mobile machine?

This happens to me when the framerate drops really low on a phone.

DjebbZ commented 11 years ago

On a desktop. It doesn't happen all the time at all, it happened only once when the ball was going fast. It bounced a few times and very quickly between the wall and the brick before getting stuck.

city41 commented 11 years ago

Ok, cool. This should be an easy fix. The Lime version probably also suffers from this.