# Source URL: https://dev.epicgames.com/community/snippets/jd22/fortnite-mini-golf-verse-code
# Local doc: epic-docs/community/snippets/jd22/fortnite-mini-golf-verse-code.md
using. /Fortnite.com/Characters
using. /Fortnite.com/Devices
using. /UnrealEngine.com/Temporary/SpatialMath
using. /Verse.org/Simulation
using. PhysicsUtils
using. PhysicsUtils.GolfUtils
#Class representing a player's golf ball and associated devices
player_ball := class:
@editable
BallProp : creative_prop = creative_prop{}
@editable
OrbitCamera : gameplay_camera_orbit_device = gameplay_camera_orbit_device{}
@editable
PowerCinematic : cinematic_sequence_device = cinematic_sequence_device{}
@editable
LauncherStages : []launcher_stage = array{}
var StartPosition : vector3 = vector3{}
#Wrapper class for each launcher stage
launcher_stage := class:
@editable
LauncherProp : creative_prop = creative_prop{}
#Float that represents the maximum time needed while holding the shoot input to use this stage
@editable
TimeNeeded : float = 0.0
#Class representing golf settings used across the map
golf_settings := class:
@editable
RespawnDelay : float = 2.0
Verse Library
verse
01 Snippet
Defines core classes and manager for mini golf game state, player balls, and launcher stages.
extracted-snippets/community/snippets/jd22/fortnite-mini-golf-verse-code/01-snippet.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.