daleharvey / pacman

HTML5 Pacman
Do What The F*ck You Want To Public License
697 stars 470 forks source link

Change Draw to Image #2

Open Sly777 opened 11 years ago

Sly777 commented 11 years ago

Hi, I want to change ghosts to image that i have. How can i import my ghost images?

nicholaswmin commented 9 years ago

with ctx.drawImage command - Images are currently being drawn with quadratic-beziers and arcs mostly - find their coordinates where they are being drawn and replace those commands with a single ctx.drawImage command, such as ctx.drawImage(yourImg,xPos,yPos,width,height).

shiloh92 commented 2 years ago

Would love to see instructions on how to do this replacement.

Detzler commented 1 year ago

Would love to see instructions on how to do this replacement.

yeah, me too. Thank's in advance.