Golf
Golf is an in-game activity where players hit Golf Balls into Golf Cups using Golf Clubs. Golf supplies can be purchased from the Golfer NPC. Golf courses are not naturally-occurring and must be built.
Gameplay
Setting up
The player needs to obtain the following basic components to build their course: any Golf Club, a Golf Cup, and a Golf Tee to place the ball. Optionally, a Golf Ball can be acquired for changing the ball's color and for placing the ball outside of Golf Tees.
How to play
To play golf, the player should either place a Golf Tee and then put a ball on it by pressing ⚷ Open / Activate on the tee, or just drop the ball on the ground. Then, they should use one of the four types of clubs to hit it, those being the Driver, the Iron, the Wedge, and the Putter. When the player is holding a club, a white meter will appear below the ball when the player is readying a stroke, and holding down ⚒ Use / Attack will cause the meter to fill from red to blue, indicating the power of the stroke and increasing the distance the ball will travel when the club is swung.
The goal is to get the ball into the cup in as few hits or "strokes" as possible. When a Golf Ball reaches a Golf Cup after it has been hit at least once by a player, a confirmation sound is played and a status message is displayed: "<Player name> sunk the Golf Ball in <number of strokes> strokes!" If the player managed to move the Golf Ball into the Golf Cup in a single stroke, the following status message is displayed instead: "<Player name> sunk the Golf Ball in a hole in one!"
Using the Golf Whistle will return the ball to its previous position at the cost of a one-stroke penalty.
Golf score
Separate from the regular golf scoring system of stroke count, golf score is a hidden statistic used to track a character's overall experience with playing golf. It is increased every time the player sinks a Golf Ball into a Golf Cup using a Golf Club.
The calculation is described in detail below. In short, players aiming to gain high golf score values should:
- maximize the distance between the start and end point of each shot,
- reach the Golf Cup in as few shots as possible, and
- wait at least one minute between subsequent scores.
Calculation
Upon sinking a Golf Ball into a Golf Cup,[1] the golf score increase is calculated based on the number of strokes needed and the total of the Euclidean distances of each shot, measured in pixels. That is, by drawing a straight line between each location a shot is taken, and where the ball subsequently lands, the total distance will be the sum of the lengths of all those lines. Note that the actual distance that the ball travels is irrelevant, only the start and end points of each shot. Additionally, the time that has passed since the last time the player has sunk a Golf Ball into a Golf Cup also affects the score.
[math]\displaystyle{ \text{score} = \left\lfloor \frac{\left\lfloor \text{distance} \div 16 \right\rfloor}{\text{strokes} + 2} \right\rfloor \times t }[/math]
- [math]\displaystyle{ \left\lfloor \ldots \right\rfloor }[/math] is the floor function, i.e. rounding down to the next integer.
- [math]\displaystyle{ \text{distance} }[/math] is the sum of the Euclidean distances in pixels, as described above. Each tile in Terraria consists of 16 pixels.
- [math]\displaystyle{ t }[/math] is the time penalty factor, a decimal between 0 and 1. It is set to 0 whenever the player sinks a Golf Ball into a Golf Cup and is incremented by 1/3600 (0.02778) each tick[2] thereafter, meaning the penalty is 100% immediately after scoring and wears off down to 0% over the course of 1 minute.
- [math]\displaystyle{ t }[/math] is reset to 1 (no penalty) when the player leaves and re-enters the world.
The calculated [math]\displaystyle{ \text{score} }[/math] is added to the player's accumulated golf score. A player can accumulate a maximum total golf score of 1,000,000,000.[3]
Example
On a flat platform of 99 blocks, a player who sinks a Golf Ball from a Golf Tee at one end into a Golf Cup at the other end (distance of 100 tiles or 1600 pixels) in two strokes gains a golf score increase of 25:
[math]\displaystyle{ \begin{align} \text{score} & = \left\lfloor \frac{\left\lfloor 1600 \div 16 \right\rfloor}{2 + 2} \right\rfloor \times 1 \\ & = \left\lfloor \frac{100}{4} \right\rfloor \\ & = 25 \\ \end{align} }[/math]
If the player repeats this soon after, so that the second Golf Ball reaches the Golf Cup 12 seconds[a] after the first one, they only gain a golf score increase of 5 due to the time penalty:
[math]\displaystyle{ \begin{align} \text{score} & = \left\lfloor \frac{\left\lfloor 1600 \div 16 \right\rfloor}{2 + 2} \right\rfloor \times 0.2 \\ & = \left\lfloor \frac{100}{4} \right\rfloor \times 0.2 \\ & = 5 \\ \end{align} }[/math]
Impact
The Golfer's shop inventory will expand as the player increases their total score, but will not expand after 2000. The availability of some of his quotes is also tied to the player's golf score. In addition, reaching certain golf score thresholds unlocks the Football in the Party Girl's shop and the Hunter Cloak in the Clothier's shop.
Notes
- The speed and trajectory of Golf Balls are affected by the following:
- Golf Balls will travel further when hit from hard surfaces such as Stone Blocks or Gray Bricks. Starting on a Golf Tee will make the ball travel further as well. Ice will cause Golf Balls to skid further when rolling on it.
- Conversely, surfaces such as Sand, Silt, Slush, Cloud or Living Leaves will slow Golf Balls down and make them harder to swing, unless with a Wedge club. Honey Blocks will also slow them down, practically to a halt.
- Golf Balls will not break Cobwebs, but they will slow down when moving through them.
- Plants such as vines, tall grass, and thorny bushes will slow down the movement of Golf Balls. Using the Lawn Mower to mow grass will help Golf Balls travel faster and further.
- Water and honey will severely hinder the movement and trajectory of Golf Balls, while lava will not.
- Golf Balls are affected by bouncy blocks such as Silly Balloons.
- Since Golf Balls count as projectiles, they can be moved by Conveyor Belts and will activate Teal Pressure Pads.
- Golf trajectory is not affected by wind speed. Additionally, Golf Balls are not affected by Teleporters, portals, or explosives.
- Golfing cannot be done in reverse gravity because the player will not be able to swing the club in reverse gravity.
- Golf Balls do not seem to adhere to the reduced gravity effect in the Space layer.
Tips
- The player can use the same level location for an Old One's Army arena and driving range. Putting a tee at one end and a cup at the other can give the player plenty of points using the driver.
- If the player puts multiple Golf Cups followed by a large one-tile wide wall at the end, they can increase their one-shot chance significantly and therefore increase the score points they gain. Mowing the entire location helps as well, as balls bounce much higher and further on mowed grass.
- On a large world, the player can also set up a tee at the top of their Hellevator and using a putter to putt down into the Underworld.
- Since the camera follows the Golf Ball once shot, it can be easy for the player to use golf to search their world for Floating Islands. The player can simply put down a Golf Tee and use a Wedge or Iron club to launch the Golf Ball upwards. This has the added benefit of being faster and cheaper than most other early-game methods as the Golf Ball travels fast without any additional purchases needed for each shot.
- Using a Golf Tee will automatically place a Golf Ball on it even if the player has no Golf Balls in their inventory. If the player already has a tee, there is little reason for the player to buy Golf Balls unless to dye into different colors.
Trivia
- While a player, Ghost, and the death screen can block a meteor from spawning at a location if the landing spot is within frame, the spawning of the meteor can actually be seen using Golf Balls to move the camera.
- Some custom-made maps are dedicated entirely to golfing, featuring large courses.
See also
- FORE-RRARIA! Hitting the Links with Terraria Golf (May 11, 2020), a forums post by Re-Logic introducing the mini-game.
- Terraria 1.4 Golf Reveal! (May 11, 2020), a video by YouTuber Khaios introducing golf and showing the golf map Putt-rarria.
History
- Desktop 1.4.4: When getting a hole in one in golf, it now says so instead of saying 1 stroke.
- Desktop 1.4.0.1: Introduced.
- Console 1.4.0.5.4.1: Introduced.
- Switch 1.4.0.5.5: Introduced.
- Mobile 1.4.0.5.0: Introduced.
References
- ↑ Information taken from the
Desktop 1.4.4.9 source code, methods ContactListener.PutBallInCup()inTerraria.GameContent.Golf.GolfHelper.csandGetGolfBallScore()inTerraria.GameContent.Golf.GolfState.csand classGolfBallTrackRecordinTerraria.GameContent.Golf.cs. - ↑ A tick is a time unit countable by the software. Most of Terraria's updating logic happens every tick. A tick has the length of 1/60th of a second, hence there are 60 ticks in a second and 3600 ticks in a minute.
- ↑ Information taken from the
Desktop 1.4.4.9 source code, method AccumulateGolfingScore()inTerraria.Player.cs.
- ↑ 720 ticks (1 tick = 1/60th of a second), [math]\displaystyle{ t = \frac{1}{3600} \times 720 = 0.2 }[/math]