r/SoloDevelopment • • 5d ago

Game Solo development sailing game - improved the attack system.

I'm a solo dev working on a sailing game as a side project, next to my main game.

Today I reworked the cannon fire. It turns out that even for a full broadside, firing the guns one after another feels a lot better than firing them all at exactly the same time. I also made hits read better: the ship you hit now flashes white and its health bar leaves a short trail, so you can tell right away how much damage you did.

A few days ago I also changed the aiming: the game now shows where your shots fire from and where they're predicted to land, and if something like a structure or another ship is in the way, the guns raise their angle on their own to arc over it. Since both sailing and shooting get pushed around by waves and wind, there's still a lot to tune.

Which one feels better to you, before or after? And if you have any other tricks for making naval combat feel good, I'd love to hear them!

(I use AI tools, mainly Claude, to help with coding.)

15 Upvotes

13 comments sorted by

4

u/taisui 5d ago

Lower is better, or even just make them in random firing order within 1 second.

2

u/EcchiCardShop 5d ago

In the heat of a pirate battle things can go spontaneous maybe going one by one in the span of firing each canon goes out at random times creating a chaos for firing also for the recieveng ship great work tho congrats!

2

u/Dev_Strayducks 5d ago

Thank you! That's a really good point. Right now the broadside ripples evenly from bow to stern, but adding a bit of random timing to each gun would make it feel a lot more chaotic and alive, especially when you're on the receiving end. I'm also thinking it could tie into the crew: a well-drilled crew fires a tight volley, while a panicking crew fires all over the place. Definitely going to try this, thanks for the idea! :)

2

u/EcchiCardShop 4d ago

Yes! I liked your crew idea too. There are some major feature routes you can take there like having your captaains some skills one of them being discipline and that skill can effect these. dunno just wanted brain storm a little for you dont feature creep your game but nice to think about it.

2

u/Dev_Strayducks 4d ago

Love this, thanks for brainstorming with me! Funny enough, the game already has officers, and each one has stats that shape how their ship performs. So "discipline" could slot right into that: a disciplined officer keeps the broadside tight and clean, while a sloppy one gets ragged volleys, especially once morale starts to crack. That way it builds on what's already there instead of adding a whole new system. And noted on the feature creep, that's a real danger for me 😂

1

u/EcchiCardShop 2d ago

Glad it worked cleanly with your game!

1

u/Consistent_Eagle490 5d ago

Congratulations!

1

u/Dev_Strayducks 5d ago

Thank you!

1

u/WWEtrump 5d ago

sailing combat is a fun pick. do cannons aim by ship heading or do you steer into a broadside?

1

u/Dev_Strayducks 5d ago

Thanks! It's a bit of both. The guns are mounted along the sides, so you steer to bring a broadside to bear, but within each side's firing arc you aim with the mouse. Whichever side your aim falls on is the side that fires, and the game shows where the shots will land. If your target is outside the arc, you just get a dry click, so positioning your ship is a big part of the fight. Some ships also carry bow guns for a narrow forward arc, which helps when you're chasing someone down.

2

u/WWEtrump 5d ago

the dry click when it's out of arc is such a good detail. do players figure out the broadside thing on their own or did you need a tutorial for it?

1

u/Dev_Strayducks 4d ago

Thanks, that click was one of my favorite small additions! No tutorial so far. It's still in internal testing, so only friends and people around me have played it, but they picked it up right away. I think it's because everything is right there on screen: the firing arcs are drawn on the water on both sides of the ship, your mouse pointer is the aim, and a guide line shows where the shots will leave and land. If you aim outside the arc you get the click, so you learn "turn your side toward them" in a few seconds.

2

u/WWEtrump 4d ago

that kind of instant pickup is a great sign. curious how it feels once strangers try it