Saturday, March 6, 2021

Breakout News

 Still on Breakout: there's good news and there's bad news.

I now have two balls appearing once the powerup icon has 

been hit, and moving symmetrically in opposite directions.

Aces!! both are recognized as instances of Ball, the class.

Problem is, all the interaction code with paddle and bricks is -

and has to be - on PlayState.lua, so that everything gts recognized. 

I would need to recopy all that for each of the balls: doable

but long and silly. Oh no! What I need to do is but all three

activated balls in a Balls class, covered by the same code.

Here we go...




No comments: