I’ve managed to do a 180 degree flip using drawImage() but I can’t seem to get 90 degrees. If I draw a single Pacman with his mouth pointing, say left, can’t I use drawImage() to render that image with him pointing up, down, and right? Given that the sprite is 32x32:
drawImage(img, 0, 0, 32, 32, 32, 32, 0, 0, null) should turn a left-facing Pacman to a right-facing Pacman. I can’t figure out how to get an up/down facing Pacman, or is this not possible and the image is only flipped?
Michael Bishop