Pizza Pursuit 2 Defining the Pickup and Delivery Zones for Time Trial in Verse
A zone is an area of the map (represented by a device) where the player can pick up items or deliver items. By completing this step in the Time Trial: Pizza Pursuit tutorial, you’ll learn how to create these pickup and delivery zones and activate / deactivate them for the player.
Using Abstraction for Creating a Zone Class
Abstraction is a programming principle where unnecessary details are hidden from a user where the user doesn't need to understand the hidden complexities. Abstraction describes what something is without knowing how it works. For example, you can put money in a vending machine and get a treat out without understanding how the mechanics function.
In Time Trial: Pizza Pursuit, there are two kinds of zones: pickup zones, which use the Item Spawner device, and delivery zones, which use the Capture Area device. Since these zones will behave the same way even though they’re different devices — meaning that both can be activated and deactivated — you can create a class to abstract this behavior into a generic zone object that handles the specific device interactions.
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.