• Register

Blood Sweat Gold is a turn based strategy RPG where you take command of a band of sellswords and lead them through the harsh Threcian Crossroads. Inspired by great games like Mount and Blade and XCOM.

Post news Report RSS Terrain, Animation, Physics and Combat

This environment is unusual in turn based games. Smooth rolling hills, uneven ground. Character animation wants flat ground. The problems started immediately.

Posted by on

Let's start with Grasslands

I’m really proud of the terrain in BSG. The environment is based on the beautiful rolling hills of the Irish and Scottish grasslands. There was something about those hills, fog, and stone that are just magic.

This picture was a major inspiration. I went back to it over and over.


This environment is unusual, especially in a turn based game. The smooth rolling hills create a lot of uneven ground, and the ridges make for sharp mini cliffs. This picture with the fog wasn’t just a nice shot. It had a mood to it. I wanted to capture that melancholy, bittersweet feeling.

I spent a month building an (awesome) terrain editor. This was the first thing I built with it.


Not every scene has as much mood. The sky and weather are procedural, so it can shift, day night cycles, etc. The clear blue skies offer reprieve from the grey overcast, but going back to that lone tree and those overcast skies help to remind me of the heart of BSG. Bittersweet.

After all, it's a game about your guys dying!

Grasslands can't be challenging? Can they?

The thing about grasslands is that they're mostly grass... This is one of the reasons they're unpopular in video games. The heart of an environment like this is the shape of the ground, not so much the trees and vegetation: it's the hills and the slopes, the ridges and valleys. So I built rolling hills and valleys. I wanted my Irish Countryside.

And the problems started showing themselves immediately.

Character animations are built around flat ground, so the problems with this kind of sloped ground were everywhere. Hovering feet drove me nuts even in early prototype stages.

This looks way worse when you can move the camera around.


The only way to fix that is with Inverse Kinematics (IK). IK systems solve the movement of connected bones and joints and allow you to procedurally reposition limbs as naturally as possible. The IK solver I used was FinalIK written by Partel Lang, a product I fully recommend.

If your front leg is bent, like guy in the screenshot, you need to shift your center of mass forward. You lean into the forward leg a bit. These details help to make sure the character and the environment blend together, everything feels more cohesive.

Ahh, no more hovering feet!


I integrated Foot IK in the first few months of development, but the real problems were in the game play.

This kind of situation kept coming up over and over in game play.

No amount of fancy footwork is going to stop this kind of situation from being a mess.


Fighting on the side of a cliff like this felt terrible, but the terrain is built around rolling hills and stone ridges so I can't just block off all slopes as impassible. I watched playtesters get stuck in these kinds of cliff side fights, and it just ruined the experience. To top it off, a clever playtester demonstrated a ton of “cliff running” exploits that really were far too easy to pull off.

I had to put off solving these problems for a long time and focused on other parts of the game, but a couple weeks ago I realized these problems presented an opportunity. So I went for it.

The animation in BSG always used a little physics, but this was really just cosmetic. Something to make each combat impact feel a little different.

A test environment where I worked on attack impacts.


Combat Physics and Uneven Ground

Over the last two weeks I’ve added a considerably amount of work to the physics in BSG, giving it a much larger role. Character physics now model the body keeping balance. Combat takes terrain, velocity and footing into account. The rolling hills and ridges aren’t just set dressing, now the environment plays a key role in the combat system.

It’s easy to lose footing while stumbling backward on a slope, especially when attacked with a combination, as each attack adds force. The guy in red wouldn’t fall here if the ground was flat.

Tactical decisions are richer

Different angles of attack, weapons, and different types of terrain all potentially changing the outcome of each attack. Being able to use “good ground” to your advantage in a really meaningful way is a huge step forward for the combat system, it really gives you the chance to unleash your tactical genius.

Plus, it’s just fun as hell knocking guys off cliffs.

PS: it took a crazy amount of work to get this system to work and there are still a few bugs hanging around. I am really tired… but this system is sooo worth it.

Comments
Menumorut
Menumorut

I love the game and the amount of progress that you are making. I will make sure to support you by buying the game whenever possible so I can test it for bugs, glitches and **** like that.
Good luck!

Reply Good karma Bad karma+2 votes
BloodSweatandCode Author
BloodSweatandCode

Thanks man, this kind of feedback really helps keep me going!

Reply Good karma+2 votes
LuckyOne
LuckyOne

"It's over Anakin, I have the high ground" :D

Good job, nice game mechanic, can't recall many RPGs on the top of my head that have it!

Reply Good karma Bad karma+1 vote
Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

Follow Report Profile
Icon
Blood Sweat Gold
Platforms
Windows, Mac
Engine
Unity
Contact
Send Message
Release date
Game watch
Follow
News
Tags
Dev
Browse
News
New
Post news
Report
Report
Share
Related Games
Blood Sweat Gold
Blood Sweat Gold Roguelike
Related Engines
Unity
Unity Commercial
Related Groups
Indie Devs
Indie Devs Hobbies & Interests with 1,659 members
Indie Gamers
Indie Gamers Hobbies & Interests with 1,508 members
Unity Games
Unity Games Hobbies & Interests with 1,812 members