HTML and CSS Reference
In-Depth Information
Game Graphic Transformations
As we saw in the previous section, we can easily rotate a game graphic at the top-left corner
by using the context.rotate() transformation. However, our game will need to rotate ob-
jectsatthecenterratherthanthetop-leftcorner.Todothis,wemustchangethetransformation
point to the center of our game graphic object.
Search WWH ::




Custom Search