Hi @dmlong,
First thing I noticed is that you declare your classes with a lower case name which might be confusing with other variable names. Instead use the PascalCase convention like Wall
and BrickWall
.
For that you need some kind of timer. When the wall is touched by a projectile, you trigger a variable to true
and start counting time. Then each time you draw the wall, you display a different sprite depending on how close to the “end of life” limit a wall have.
See this for implementing a timer: Brick Game Timer Question - #2 by josephh