Closed rcbrowder closed 6 years ago
pacLife
livesDisplay()
animate()
The pacLife variable is reset back to 10 because that's the x-coordinate for placing the sprite on the page. It has nothing to do with the i variable in the loop.
pacLife
with info on displaying Pac-Man spritelivesDisplay()
- Draws images of Pac-Man to indicate how many lives the user has leftanimate()
now callslivesDisplay()