bootcamp-s18 / pac-man

0 stars 0 forks source link

Lives display #21

Closed rcbrowder closed 6 years ago

rcbrowder commented 6 years ago
  1. Variables added
    • pacLife with info on displaying Pac-Man sprite
  2. Functions added
    • livesDisplay() - Draws images of Pac-Man to indicate how many lives the user has left
  3. Functions updated
    • animate() now calls livesDisplay()
rcbrowder commented 6 years ago

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.