Chapter 8. FPS

Before polygons and multiple camera angles informed how modern 3-D games could work, games with raycaster-based rendering such as Doom and the game you build in this chapter provided a convincing pseudo-3D experience. With this first-person perspective, you can invite players to view the world you create through the eyes of a soldier, a secret agent, or someone mostly running away from the undead. With an over-the-shoulder camera, the techniques in this chapter also lend themselves to creating the type of perspective you would need for a racing game or first person RPG.

Recipe: Getting Started with Jaws

In the last chapter, we managed to sneak in a 3-D technique with parallax scrolling background images, which is frequently used ...

Get The Web Game Developer’s Cookbook: Using JavaScript and HTML5 to Develop Games 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.