Team Elimination Game in Verse
Game modes that advance players through weapons are a staple of the action genre. By forcing players to react to each weapon they’re given, they create intense, varied, and exciting experiences where no game plays out the same. However, these experiences are highly dependent on the order players are granted weapons. If a player gets stuck on the same weapon for a significant amount of time, this can lead to frustration.
This example adds a cooperative spin on the idea, where players advance through weapons as a team, and skilled players can advance their teammates up the tiers, helping them through weapons they might struggle with.
By completing this guide, you’ll learn how to create a game mode where players advance through a series of weapons, with each elimination granting them or their teammates the next weapon.
Verse Language Features Used
- map: This example uses the map container type, which provides handy key-value associations of players and their stats to track a player’s current weapon tier as well as team assignment.
- Type Aliasing: Type aliasing allows you to give a type a unique name without creating a new type.
- option: This device uses options to determine which player should be assigned a weapon when a player scores an elimination.
- array: This device uses multiple arrays to store references to other devices and teams of players.
- for: With the for expression expression, you can iterate over the arrays the device uses.
- if: The if expression is used to check whether players have a higher weapon tier compared to their teammates, and if players have achieved the correct number of eliminations to end the game.
- failure: Failure contexts are used to access arrays and to control the flow of the program.
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.