Game Development Reference
In-Depth Information
Figure 16-23 . Fine-tune your vertex placement for the collision polygon in the PhysicsEditor, then select your Ex-
porter
The closer you can get the collision polygon to the outline of the sprite, optimally
you would want to put it right on top of the anti-aliasing that is on the pixel-edge
between the sprite pixels and the transparency, or even right inside of the anti-aliasing
if you want a more challenging game play. Ultimately, your collision polygons will
have to be tweaked during your game development and game testing cycles, so that
you get the most realistic result during your game play. If you're developing for power-
ful platforms such as game consoles, you can add data points to the collision polygon,
and if you're developing for single or dual processor platforms, such as HTML5
phones or iTVs, use less data.
Replacing Dummy Collision Data: Invin-
ciBagel.java
Next, let's make some changes to your Java code in the InvinciBagel.java class, so
that you are actually using this highly optimized collision polygon data that we just de-
 
Search WWH ::




Custom Search