CHAPTER 16

image

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

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 ...

Get Beginning Java 8 Games Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.