LexB22 / Jump-Up

0 stars 0 forks source link

Move camera up #2

Open nvcompsci opened 4 years ago

nvcompsci commented 4 years ago

https://github.com/LexB22/Jump-Up/blob/6068b435cf3daffa9694d64fe3dee4b550483e97/12-12#L26

nvcompsci commented 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()

LexB22 commented 4 years ago

Where do I put this?

nvcompsci commented 4 years ago

https://github.com/LexB22/Jump-Up/blob/6068b435cf3daffa9694d64fe3dee4b550483e97/12-12#L26 Replace the one line where you call image() with the multiple lines.