© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
W. Wang, T. WalcottProgramming for Game Designhttps://doi.org/10.1007/979-8-8688-0190-7_13

13. Shooting Projectiles

Wallace Wang1   and Tonnetta Walcott2
San Diego, CA, USA
El Cajon, CA, USA

Moving is one of the most common tasks in any video game. The second most common task is shooting a projectile to attack enemies. Even though a player can move around in the game, it makes the game boring over time. Therefore making more interactions such as shooting projectiles, unlocking items, or other options can make a game more interesting.

Firing a projectile involves creating another object, aiming it, and moving it in the direction it was aimed. Later, shooting ...

Get Programming for Game Design: A Hands-On Guide with Godot 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.