The next unit to be implemented is the Shieldsman. A heavily armored soldier carrying a retractable tower shield. This unit serves as the tank, incoming attacks from the front are negated while the shield is in place. It is slow, however, and cannot traverse steep slopes. It cannot even climb ladders as they would collapse under its sheer weight.
Retractable Tower Shields are the Shieldsmen’s namesake. Made of solid steel, only the strongest warriors take up this role.
While in limber mode, the shield offers more mobility (limited as it is for a Shieldsman).
When activated, the shield is as good as a wall of steel, shrugging off even the high-speed bullets of Sharpshooters.
My first step is to concept the Shieldsman’s shield. I won’t bother actually making the Shieldsman yet; I’ll just reuse the Dragurian Colony Soldier 3d model for now.
This sketch shows how Shieldsmen may look like.
I got carried away and made another shield:
Adorned with three hideous faces, the Mad Kings Shield is not for protection as much as a tool to strike terror to enemies.
The retractable component doubles as a tool to kill, serving as a portable guillotine. In practice, this miniature guillotine only works best as a coup de grâce move.
WordPress.com also has a little statistics report for the blog.
Here’s an excerpt:
600 people reached the top of Mt. Everest in 2012. This blog got about 1,900 views in 2012. If every person who reached the top of Mt. Everest viewed this blog, it would have taken 3 years to get that many views.
With the outdoor map I made it was clear that I needed some pathfinding for the characters.
Typically this is achieved with overlaying a cell grid on your map, or perhaps manually placing markers/nodes on your map indicating possible pathways.
Then an A-star pathfinding algorithm is let loose, finding the optimal path from one spot to another with the help of the aforementioned cell grid, or node map, or what-have-you.
(Unity Pro has a really nice Navigation Mesh feature but since I don’t have Pro, I can’t use that.
There’s this: Certain Logic’s Navigation Opensource Framework, and I’ll probably take a look at it some time.)
My problems were:
- This is a strategy game that features a gridless map (like Skulls of the Shogun or Phantom Brave), so adding a grid wasn’t very appealing to me at first.
- The characters consume resources to move (i.e. action points like in the old XCOM: UFO Defense). Among the costs for movement, the slope or angle of the terrain influences this very much. Steeper terrain costs more to travel to. Coupled with a gridless map, this means the exact slope of the terrain has to be used. A cell grid would be a coarse sampling of the terrain, and the resulting calculations of angles from that would be inaccurate, leading to discrepancies in cost to a unit’s action points.
To get accurate measurements, I’ve had no choice but to make hundreds of raycasts on-the-fly.
But this was clearly taxing on computer resources, so I had to do something about it.
My first attempt was to make the cell grid very tiny, about 0.1 meters per cell! This turned out to be even slower than without pathfinding because of the amount of cells to consider.
I tried ditching the pathfinding and used a brute force approach, but it was clearly very slow and unwieldy.
I had to make concessions. I focused on giving pathfinding to the enemy AI movement only instead. Movement range calculation wasn’t something I can solve anytime soon.
I tried a pathfiding solution again, but this time, the resulting path would only serve as a guide to detour around obstacles, not as the actual path to be used (to keep movement costs accurate).
I can get away with making the cell size coarse this time, 1 meter in size. While this means a really optimal path won’t be taken, at least the enemies won’t mindlessly keep running toward walls.
It worked nicely, but my characters still end up moving through impassable terrain, and even other units, bumping them off-course.
Valve’s presentation slides on The AI Systems of Left 4 Dead shared a nice simple solution: a simple steering behaviour on top of the pathfinding. I realize, despite my ignorance, that steering is probably a common method anyway.
While it still manages to bump other units slightly, at least the enemies now have some semblance of intelligent movement. A more sophisticated approach would be squad formations.
Furthermore my little Influence Map project may come in handy later on, to give a more tactical decision-making process to the AI.
Weekly Updates 23 and 24 were spent on a spin-off idea for Victis.
In the small game development studio I work on, I lobbied for what we call “Free Friday” where, in every first Friday of every month, for the whole of that Friday, we’re allowed to make whatever videogame concoctions we can think of.
This is our excuse to make time doing those crazy ideas we get from time to time.
This is also to de-stress (as I like to call it “detoxifying”) from being full of client work. That is, work where we create a videogame for a client, per her/his instructions, leaving little room for creative ideas.
The catch with this Free Friday, is we have to start with a blank slate every time, and make sure we have something presentable at the end of the day. Think of it as a short informal game jam.
So for the November Free Friday I thought of making this idea I had one time before I went to bed:
“Damnit I want to play Assassin’s Creed right now on my Android tablet!”
That’s pretty much the basic gist of it. I wasn’t able to have much by the end of the Free Friday so I took the weekend and the weekend after that continuing on it.
Here’s what I’ve ended up with so far:
I’ve detailed more of it in my personal blog here: Battle Maiden Part 1
How is this related to Victis
The player character in that little experiment is a Battle Maiden.
I wanted Victis to draw (loosely) on Überwald-esque dark fantasy, and that included gypsies.
Through some athletic feats of cognition, my train of thought arrived at pistol-weilding, dancing, acrobatic gypsies, that right now I’m calling “Battle Maidens” until I figure out a better name.
The idea of acrobatic, one-man army, free-flowing gameplay that Assassin’s Creed and Batman: Arkham Asylum had, fit well with Battle Maidens, so that’s the graphics I used for this Free Friday game.