Wednesday, July 30, 2014

Corner Case

So I'm merrily playing breakout with a slow ball and ten lives. Now the fun tweaking
part begins. One does have to read the small print on those functions though: on one of my
trials, the ball started moving left to right and there was nothing I could do about it. That is because I seeded my movement, vertical and horizontal, with a random multiplier 'between 0.0 and 0.1'
and - luck would have it - must have scored 0.0 on the y...

There are suggested improvements, like changing velocity, different scoring for certain bricks, lasers
and so forth. All very tempting!
The library reference above is for c++. It works for C, but the remove function has to be
stated as removeGWindow(...) to do the job in C.

No comments: