A downloadable game for Windows

Fluid Fortress was made for the AI and Games Jam 2021 using Fluid HTN.

Theme:

  • Bug is a feature where the AI breaks the rules through it's bugs and don't always do as the player commands.

AI:

  • Custom A* pathfinding that support traversal across multiple layered 2d planes (although there are some bad corner cases yet to be ironed out).
  • HTN based decision making for characters. They follow job orders from their Fortress and idle. I planned to let combat situations override job orders, but there simply wasn't time to execute on this, so the use of HTN is quite light.

Credits:

Instructions:

  • Move camera between layers using scroll-wheel or +/- keys.
  • Move camera over layer by holding right mouse button and moving the mouse.
  • Lay down jobs by holding left mouse button and moving the mouse, then click a job option.
  • Click on a character button on the left to focus on that character.
  • Press Escape to exit the game.
  • You spawn with a randomized fortress crew (Dwarven, Elven, Human, Goblin), but you have to exit the game and start it again to get a new species spawned.

Customize:

  • The map is generated from layered png files following a color coding scheme and naming scheme. "i" prefix means it's an item file, and the number corresponds to the layer. The world size will be defined by the size of the png. Be warned that Unity's GameObject model doesn't cope well with large worlds.


Changelog v0.03:

  • Jobs are now sorted by distance, so that characters are more likely to get the jobs closest to them.
  • Fixed a Null Reference Exception that would sometimes occur if a character walked idly at the edge of the world.

Known issues v0.03:

  • Sometimes characters cut corners.
  • Sometimes characters move over walls.
  • Sometimes jobs are just not completed and dismissed.

Changelog v0.02:

  • Fixed pathfinding bugs (forgot to clear on a list, ugh!).
  • Visualize paths.
  • Randomize species (in v0.01 you only spawned as dwarves, but everything was set up to also spawn as humans, elves and goblins).
  • Press Escape quits the game (in v0.01 you'd have to press Alt+F4 to exit).

Known issues v0.02:

  • Sometimes characters cut corners.
  • Sometimes characters move over walls.
  • Sometimes jobs are just not completed and dismissed.

Known issues v0.01:

  • Bugs in the pathfinding algorithm causes the dwarves to spend way too long to complete their tasks.
  • Bugs in pathfinding sometimes let dwarves move through walls.

Download

Download
Fluid Fortress v0.03 (optimization) 30 MB
Download
Fluid Fortress v0.02 (bugfixes) 30 MB
Download
Fluid Fortress v0.01 (original) 30 MB

Leave a comment

Log in with itch.io to leave a comment.