Monday, March 1, 2021

Later

 Too silly: I went to the trouble of creating an array table for

my powerup table when I only needed the one image. The

problem I was having - getting a new black background - is that

I was overcoding, calling a new draw funtion within 'render' I didn't

need...


In point of fact, function love.draw() is a call to draw something 

over at every frame.This can be a circla, a rectangle or a love.graphics

.draw of an image... In ghe current example, the render call is being made

from an update(dt) which is itself an every frame thing. So love.draw

is necessary for my Power Test, but an error in the game context.

 

Below, the powerup icon inching down the gameboard. Just need 

to wire it now, so that it spawns two balls when hit...






No comments: