Open nvcompsci opened 4 years ago
push() //save current canvas state
translate(alien.x, alien.y) //move brush to alien location
image(alien.img, 0, 0, alien.width, alien.height)
pop() //restore canvas state
see p5.push()
Where do I put this?
https://github.com/LexB22/Jump-Up/blob/6068b435cf3daffa9694d64fe3dee4b550483e97/12-12#L26 Replace the one line where you call image() with the multiple lines.
https://github.com/LexB22/Jump-Up/blob/6068b435cf3daffa9694d64fe3dee4b550483e97/12-12#L26