# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/verse-starter-template-2-defining-boards-for-game-in-unreal-editor-for-fortnite
# Local doc: epic-docs/documentation/en-us/uefn/verse-starter-template-2-defining-boards-for-game-in-unreal-editor-for-fortnite.md
# Section: 2. Defining Boards for the Game
# This class represents the gameboard and how it behaves.
# This class has the concrete specifier so it can be an editable property on a Verse device.
gameboard<public> := class<concrete>:
# The size of each tile on the gameboard. By default set to
# the default Fortnite tile size of 512x512x384.
@editable
TileSize<public>:vector3 = vector3{X:=512.0, Y:=512.0, Z:=384.0}
# The fixed point camera that provides a top-down view of the gameboard
@editable
Camera:gameplay_camera_fixed_point_device = gameplay_camera_fixed_point_device{}
# The trigger device the NPC needs to activate to complete the board.
@editable
EndGoal:trigger_device = trigger_device{}
# The array of obstacles for this gameboard.
@editable
Obstacles:[]obstacle = array{}
# The transform of the NPC's starting position on this board.
@editable
var StartingCharacterPosition<public>:creative_prop = creative_prop{}
@editable
OpeningCinematic:cinematic_sequence_device = cinematic_sequence_device{}
# The Z offset to add to the NPC's starting position when spawning them.
ZOffset:float = 100.0
# Event that signals when the end goal has been reached.
EndGoalReached<public>:event() = event(){}
# Gets the starting transform of the NPC on this gameboard by adding the ZOffest to the starting transform.
GetStartingCharacterPosition():transform=
Verse Library
verse
02 2 Defining Boards For The Game
Defines board layout, camera, start position, and obstacle arrays for a UEFN puzzle or obstacle course game.
extracted-snippets/documentation/en-us/uefn/verse-starter-template-2-defining-boards-for-game-in-unreal-editor-for-fortnite/02-2-defining-boards-for-the-game.verse
Sign in free to read the full source 🌴
This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.