Going Clubbing!

Going Clubbing!

Hello folks!

For today’s update to Boss Golf, I wanna talk about clubs!

So I’ve implemented a system that now makes use of proper golf clubs when playing the game. Until now, the AI had access to “infinite” clubs; it would decide how to shoot based on the maximum distance it could achieve, and how close it was to the hole. Based on this, and information regarding maximum/minimum angles/distances for each club type, a trajectory would be generated and that would be that.

This meant that even if the AI was in a bunker, it could still use an Iron to drive out of it in massive distances.

That’s not very likely in real life!

So I finally went ahead and implemented clubs. Now we have clubs divided into basic categories, representing the main club types (wood, iron, hybrid, putter, wedge), all further categorized into their respective numbers and/or types (1 Iron, 2 Wood, Sand Wedge etc).

Each club also has a difficulty rating (cause lord knows not even god himself can hit a 1 Iron!), which will be factored into the decision making process.

Further, each AI will have a limited number of clubs in their little AI golf bag. No more infinity clubs; they’ll have their 14 clubs and that’s that. Makers will be implemented later, giving slight deviation to angles and maximum ranges, adding even more variation to an AI’s arsenal (and other income avenues for your club with a pro shop!).

For now, these are being generated semi-randomly at the start of the game. Later on, when the AI generation becomes based on the database, these will be recorded and AI will routinely change their arsenal.

Now I’m onto implementing these new clubs into the shooting decision making. I’ve created a new “GolferBrain” class, which will be used by the AI to determine their “best” option for their current shot. Basically, it’ll generate a handful of potential shots, grade their likelihood of success, difficulty, payoff, and use the golfer’s confidence to decide on which one to take. And then shoot it! And hope for the best! And watch as their perfectly thought out strike lands in the bunker, or the fire hazard!

After this is implemented for the AI, I’ll roll it out to the Player as well. You’ll also start with a right now randomized bag of clubs, and later on you’ll be able to change your collection to better suit your playstyle.

That’s all for now folks! Stay tuned for more AI updates!

Smooth Terrain Testing

Smooth Terrain Testing

Hello folks!

Talking to a player of the game, he gave me the feedback that he didn’t quite enjoy the landscaping because the current terrain system looked a bit too unrealistic. Plus the looks of it looked a bit odd depending on the lighting conditions: the light would reflect too strong in certain areas, not strong enough in others.

So I went ahead an prototyped a simple replacement for it. Basically, I added a Terrain object to the game, and am using the existing systems for processing the information, while setting the height of the terrain based on it.

The results are here:


I quite appreciate the smoothness of this terrain. With the proper texturing, it could look pretty sweet and clean. I’m studying how to apply the terrain textures to it (grass, gree, fairway etc), but since this has a decent support for normal maps too, it could add some much welcome depth to the terrain features.

It is, however, a trick. The mesh is still pretty much the same as it was before (at least at this stage), and you can see the difference when I turn on the wireframe mapping and some zones:


But the smooth shadow makes it look a lot nicer. Playing around with some height limitations, I could make the height tools affect nearby vertices as well, to give a smoother climb. There’s no performance loss either at this stage, which is great.

I’m gonna prototype how to apply the terrain textures to it, but I have a hunch it would allow me to more easily use higher-res tiles. And for the zones, I can just keep the current system as they work decently enough as an overlay.

Considering some changes to the planning aspect of it too, but that’s for later!

That’s all for this microupdate!


Quickie: More decoration!

Quickie: More decoration!

Hello folks!

Progress this weekend has been slower than I had anticipated. Finished integrating the UI for the old controls, but still working on the stroke maker. Struggling as well brainstorming the way to integrate it into regular gameplay.

Also spent some time thinking about how to organize the AI system so that I can begin prototyping it. Goal for this month is to have an AI character able to  playtest your course! (probably very poorly, but we all gotta start somewhere!)

So here’s an image of some new trees!


Good thing about this is that the system for adding new decoration prefabs works better than expected! With the added trees, we can begin to see some much nicer looking courses!

That’s all for today, folks!

Expect a proper update soon!


Quickie: Prototyping the Stroke Maker

Quickie: Prototyping the Stroke Maker

Hey folks!

I’ve been hard at work this weekend on the new UI system and the new “stroke maker” feature.

Here you can see a nice screenshot of how it is all looking like right now:


I’ve also added more icons to replace the placeholder text, as you can see in the top menu. Added a couple new trees for decoration too, which you’ll be seeing more of in the screenshots coming up later.

I think I’ll be able to finish prototyping the stroke maker today, and finish integrating the new UI systems by tomorrow. Since it’s a three day weekend here in Japan, might be able to get the demo updated by monday!

That’s all for now, folks!

Quickie: Anatomy of a Hole

Quickie: Anatomy of a Hole

Hello folks!

I’ve finished the work I wanted done for this week. In fact, I’ll be releasing the new demo in a couple of minutes!

Now, the goal of this post is to show you how to play your awesomely create hole.

For that, I created this demo hole: Double Trouble

Here’s an overview of what the hole looks like:


The two little bodies of water in the middle add to the difficulty. The sand trap surrounding it is more for psychological terror, as they’re actually quite flat. Opposite of the fairway, which is angled all over the place, specially aimed to make you fall on the water. So to start off the drive, I aimed my shot in this direction:


My intention was to bypass the slope with speed and make it safely to the end of the fairway. But it actually happened much better! The ball bounced majestically off of the fairway, and ended up really near the green, albeit in a bunker:


From there, though, it was a short chip in to get on the green and be on a good position. This course was a par 4. This shot would put me at 2 strokes, with a potentially straightforward putt to help me to an Birdie. Which is what I did, since my chip in landed around here:


Extremely close. Like, way too close. The kind of close shot I’ve missed before because I forgot to account for slopes and stuff! This time around, I sank it like a champ!

All of this was thanks to a very lucky drive! I was not expecting it to bounce the way it did, but I was very pleased for it!

Well that’s that! Stay tuned for the new demo for Boss Golf!

Quickie: Quality of Life Improvement

Quickie: Quality of Life Improvement

Heyo folks!

Today I spent some time ironing out a bug with the collision detection, where depending on the speed of the ball it would simply go through the terrain.

That looks fixed enough! Of course, should it happen to you after this weekend’s demo, please let me know!

Still smoothing out the new physics set up. And learning how to play my own game! Turns out sometimes you really don’t want to go full force, as seen below:


Or even medium force:


Finally, was able to do it!


Next, I wanna add some trail particles for when the ball is moving on terrain, so that you can more accurately detect the path the ball took. Plus some particle effects to make things look a tad more polished!

That’s all for today’s quickie, folks!

Quickie: Some benchmarking

Quickie: Some benchmarking

So just before sleep, decided to do a quick test to see how far I could push the new terrain system.

And well, very far.

The new system can handle a grid of 96 * 96 without any issue. That’s just under 10000 tiles. Of course, them using the same texture and all made it far easier. But still, that’s pretty badass.


Will run more benchmarks over the weekend, but this is very promising.