VerseIsland
Feed Learn Leaderboard Guides Reference Explore Search Docs Verse Library
Sign in
Feed Learn 📖 Codex Leaderboard Guides Reference Explore Search Docs Verse Library
Fortnite › Verse Language · Up to Fortnite · Verse Language · 67 of 570 in Verse Language
Browse Fortnite

Pizza Pursuit: Creating the Game Loop

A game loop is code that runs repeatedly (loops) to respond to input (usually the player interacting with their controller or mouse), update game state, and provide output that shows the player they affected the game state, such as when pushing a button turns on a light. The loop usually ends when the game reaches a completion state, such as the player reaching a goal, or failure state like running out of time before making the goal.

By completing this step in the Time Trial: Pizza Pursuit tutorial, you’ll learn how to create the game loop and define the game's completion and failure states.

The following is the pseudocode for the game loop in Time Trial: Pizza Pursuit:

|  |  |
| --- | --- |
|  | loop: |
|  | race: |
|  | loop: |
|  | SelectNextPickupZone |
|  | WaitForPlayerToCompletePickupZone |
|  | block: |
|  | WaitForFirstPickup |
|  | SelectNextDeliveryZone |
|  | WaitForPlayerToCompleteDeliveryZone |

loop: race: loop: SelectNextPickupZone WaitForPlayerToCompletePickupZone block: WaitForFirstPickup SelectNextDeliveryZone WaitForPlayerToCompleteDeliveryZone

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 Discord — free for members Read the original at Epic Games

Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.

Comments

    Sign in to vote, comment, or suggest an edit. Sign in
    📄
    Source
    Epic Games

    © Epic Games. Official Epic developer documentation, shown here as a reference with a link to the original. All rights remain with Epic Games. Terms ↗

    View original Sources & licensing
    Request removal
    Last updated May 12, 2026
    Keep exploring
    More in Verse Language · 67 of 570
    Prev
    pizza pursuit 1 setting up the level for time trial in verse
    Next
    pizza pursuit 6 final result for time trial in verse
    Browse all files in this folder (A–Z)
    Next up
    • By completing this step in the [Time Trial: Pizza Pursuit
    • The following is the [pseudocode
    • 1. Create an instance of the [countdown\_timer
    • 4. Managing and Displaying the Score
    Related topics
    • Time Trial Pizza Pursuit In Verse Verse Language
    • Pizza Pursuit 3 Creating The Game Loop In Verse Verse Language
    • Pizza Pursuit 5 Improving Feedback And Player Experience For Time Trial In Verse Player
    • Pizza Pursuit 6 Final Result For Time Trial In Verse Verse Language
    • Pizza Pursuit 1 Setting Up The Level For Time Trial In Verse Verse Language

    Related

    Open in graph →

    Linked docs

    • Verse Glossary

    Related topics

    • Time Trial Pizza Pursuit In Verse
    • Time Trial Pizza Pursuit In Verse
    • Pizza Pursuit 3 Creating The Game Loop In Verse
    • Pizza Pursuit 5 Improving Feedback And Player Experience For Time Trial In Verse
    VerseIsland · an archipelago of Verse & UEFN knowledge
    🗺️ Island atlas Learn Guides History About & Press Sources & Licensing Status

    Not affiliated with Epic Games. Fortnite, UEFN, Unreal Engine, and Verse are trademarks of Epic Games, Inc. Content is attributed to its source — see Sources & Licensing.

    🦜

    Scout · your island guide

    The Isle of Verse