Golf Gameplay: Character Automatic Movement

Golf Gameplay: Character Automatic Movement

Hello folks!

For today’s golf gameplay-related dev update, I’ve added automatic movement to the character, for reaching the ball and sort of positioning himself to take the shot!

It was easier than expected, thanks to some foresight of past Gus when coding the game. I simply moved the function to shoot the ball away from instantaneous execution after releasing the mouse button over the desired location, and put it in another action executed by the golfer character once it has reached the calculated point of shooting.

This calculation is a bit dirty now, as it only tries to get position slightly away from the ball and perpendicular to the direction from the ball to the desired target. For the current prototyping purposes it works.

The golfer also slightly delay the shot when he arrives in position, in order to “think” about how to hit the ball. I’ll add some animations and fluff to this step later.

You can see the execution of a hole with the new system below:

Golfer walks to the tee and drives the ball.
Golfer teeing off!

 

Chip shot on the edge of the bunker
Chipping it in closer to the green!

 

Little golfer chips it home for a par.
Sweet chip in, Payne!

And that’s it for today’s update on golf gameplay! Still need to automate the moving to the ball more, so that the doesn’t wait for your to finish deciding on the stroke before taking position. And the shot visualizer thing is still broken, giving out NaN results depending on the slope. I’ll make a better fix for that later!

That’s all, folks! Keep on teeing! And may your strokes never slice!

(Also, starting from today, I’ll drop the numbered update from the format and put in a more relevant title off the bat. This will give you, readers, a quicker idea of what the feature is relevant to straight off the title. Categories like Golf Gameplay, Tycoon Gameplay, Management Gameplay etc will make it easier for navigation!)

Dev Update #39: Golfer is in the house!

Dev Update #39: Golfer is in the house!

Hello folks!

Today’s update is about making the course less lonely!

payne_legacy

I’ve added a prototype character to start implementing character controls and AI.

This will affect the shooting in the following way:

-You will decide the shot as you do now, from where the ball currently is and the desired destination.

-Unlike before, now your shot won’t be done instantly: the player character will first have to move to position, and then swing the club as per your “instruction”.

-Once the ball comes to a stop, you’ll be able to decide the shot again, while your character makes his way to the ball. Then once he reaches it, if you’ve decided the shot, he will strike it; if not, he’ll wait for you to do so.

This indirect manipulation of the shots will be vital in implementing the AI. In fact, with your player character, you’ll also be able to let the AI control him if you’d like, so that he can play some rounds of golf and improve while you’re busy off making a new hole. The AI will make use of the systems I’m implementing to create the shots and try to get a good score.

I’ll also test out an attribute system so that your shots have a bit of imperfection based on your character’s strengths and weaknesses. This will refine the golf gameplay further, increasing the challenge and the planning.

You can see a mock up of how the golf gameplay will play out here:

payne_shot

That’s all for today folks!

(Bonus points if you can guess the golfer I’ve based the character on!)

Linux Demo Added!

Linux Demo Added!

Hello folks!

I’m happy to announce that the Boss Golf demo is now also available for Linux!

There’s version for both x86 and x86_64.

Download information, as always, available on our Demo page.

Any issues you find, don’t be afraid to contact us either using the contact form, or by visiting our subreddit.

Now, back to work!

Demo Updated with Day-Night Cycle

Demo Updated with Day-Night Cycle

Hello golfers!

I’ve updated the game to add the day-night cycle feature, as well as fixing an issue where the ball would be shot into oblivion if you shot it uphill/at an incline or something.

The shot curve visualizer thing isn’t perfect; but the shots no longer bug out. Or shouldn’t!

In any case, go ahead and try out the demo! Available here as usual! Both Mac and Windows versions available.

Oh and we’ll be adding Linux support for the demo pretty soon!

Here’s two nice holes I built with the current version of Boss Golf!

Fear of the Dusk

fearOfTheDusk

Morning Glory

morningGlory

Next on the list is a reworking of the play/golf hole panel, giving you better/more interesting information regarding the hole, as well as the possibility to open it up for AI play. Which will be implemented later this month, at least at a basic level!

Anywho, enjoy!

Dev Update #38: Day-Night Cycle Implemented

Dev Update #38: Day-Night Cycle Implemented

Hello folks!

For a quick detour in plans, on suggestion of a player, I’ve implemented a basic Day-Night time cycle into the game following this very handy guide. This way, as you build up your course, things will feel a lot less static than before.

This system will also be used for determining everything else in the game regarding time; progression, money, AI actions etc. For now, there’s 3 speed settings, with the slowest one taking about 10 minutes for a full day, and the fastest one taking about 2 minutes.

Next level for it will be limiting the times the course will be operational; as there’s no 24-hour golf course. Yet. This will also affect your budget and upkeep and whatnot. So next major update will be management!

For now, here’s a nice GIF timelapse!

Boss Golf - Timelapse

And here you can see the difference between Morning – Noon – Evening:

There’s lots of room for playing with the light color, the fog etc, to add more life to the transitions. But it’s good enough for now!

Will roll this out into the demo tomorrow! So stay tuned!

That’s all for today, folks!

Demo Updated! Play it with sound!

Demo Updated! Play it with sound!

Hello folks!

The demo for Boss Golf has been updated!

Download information and more, as always, are here!

New for this version:

  • Updated user interface for more fluid gameplay
  • Added option for adding rotation to your shots
  • Physics and other tweaks
  • Sound and particle effects

So there you go!

This may or may not be the last demo version of the game before entering alpha, as I plan to spend the rest of this and the next month into getting the AI and the management elements into the game. Still up for planning, though.

Now for some things I’ve built while using this new version!

That’s all for now, folks. Don’t forget to give us your feedback on our forums!

Dev Update #37: UI update finalized!

Dev Update #37: UI update finalized!

Hello folks!

I’ve finished updating the UI to the new system! Hurray!

Now the menus are better, and it’s easier to extend when adding new features. Take a look!

UI_Revamp

Of course, many assets are placeholder. But they do their job pretty well. UI will be more filled up with buttons once more features are implemented.

But now it’s at the state I wanted, you have the same functionality as before but more well organized. Excellent.

Now time to move on to AI! Hopefully by this weekend I’ll have Bob Golf roaming around the course and trying to hit the ball.

So stay tuned!

Dev Update #36: Basic Stroke Maker is In!

Dev Update #36: Basic Stroke Maker is In!

Hello folks!

Finished implementing the basic version of the stroke maker!

It now allows you to curve your shots in sort of the way you want it. To illustrate the process, I created a simple tiled hole so that you can better see the path created by the ball before and after the shot.

Below, you can see a top before/after view of hitting the ball off the tee:

On the left side, it’s the straight predicted trajectory of the ball (currently not taking into account the spin on the display!), and on the right is the result of the stroke. As per the stroke maker, you can see I went full on right-spin on it. You shouldn’t do that unless you really want it the spin. In this case, it deviated only slightly to the left.

Here, the ensuing shot, a chip in from a distance:

Again, full on spinning. It resulted in a nice curve cutting inside towards the center of the field. Just for displaying purposes, of course.

Finally, my attempt at putting with a curve because why not?

All of that was on flat ground, to make sure the curving calibration wasn’t affected by any other effects. Dang close from the hole too, if I had aimed just a tad more to the left, it would have gone in. But oh well, live and learn!

This doesn’t conclude the UI implementation yet; I still need to hook up the end state of the goal/retire option to it, as well as add more info regarding the stroke you’re taking, plus information on the hole and how far along you are. After, I’ll make some more icons for the terrain editing part, ensure everything is navigable, and that you can cancel your actions.

Then I’ll move on to AI, hopefully!

That’s all for now folks!

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!

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!

-Gus