Collision Detection: Creating SVG Polygons for the Game Actors and Writing Code to Detect Collision

  • Wallace Jackson


Now that we have implemented digital audio for our game sound effects and short-loop music, as well as implemented our digital imaging related classes that create motion sprites (characters) and fixed sprites (props), we will now delve into the other major genre or area of new media: vectors. Vectors are utilized in 2D illustration software (InkScape) as well as 3D modeling and animation software (Blender), and use math to define the shapes that are used to create the 2D or 3D artwork. This makes vectors the perfect solution for defining custom collision shapes that perfectly encase our sprites, so that instead of using a complex array of pixels to detect collision, we use a far simpler (and far more memory and processor efficient) collision polygon, that will perfectly surround our sprite.


Path Tool Work Process Game Play Collision Detection Game Development 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Wallace Jackson 2014

Authors and Affiliations

  • Wallace Jackson
    • 1
  1. 1.CAUnited States

Personalised recommendations