Game Development Reference
In-Depth Information
Figure 10-14 . The player's texture is clearly cut off (4x scale)
In order to improve this, the texture coordinates need to be moved outward, away from the
center. Effectively, this increases the radius for the player's texture coordinates. This is
what the _enlargeTextureRadius value does. You should set it to 6 , and try it out
again in the game. The result should be what you see in Figure 10-15 .
Figure 10-15 . Moving the player's texture coordinates outward ensures all of the texture is drawn (4x scale)
Search WWH ::




Custom Search