Thursday, March 4, 2021

Inching On

 Some progress on Breakout ; the powerup appears on a

'u' press, shuffles down the screen and disappears at the bottom. 

Also disappears if hit by the ball. Just need to specify the level, invite

the user to push 'u' at his convenience and - today's problem -

make two supplementary balls appear when the powerup is

hit...


Cleaner code, too!


The disappear code, from Powerup.lua:


Using dy for the update code:



Integration Ball's collides code for use with Powerup:


The init function from Powerup.lua:




Within  PlayState.lua:






No comments: