Naval units, new demo mode features

Posted by Oleksandr on March 3, 2019

March 2019 development update (v5) introduces naval units, improved world generator with support for multiple continents and islands, AI logic to support naval exploration and combat, and some new features in the demo mode (when observing AI players).

Naval units

Bombarding works like a siege attack and does collateral damage to all units and the city on a tile. Unlike the siege attack, it does not require one turn of preparation.

Ships can move into coastal cities. This means that you can build a canal city linking two bodies of water together.

World generator can now produce multiple continents and islands, and ensures quality of player start locations by scoring each tile for quality of the area nearby, and then selecting start locations only from the top 25% of them.

AI logic to support naval units and multiple continents

The AI implementation had to learn a lot of new things to deal with the fact that there is now more than one landmass, and that units have to be carried by a ship to get across.

The major new thing is that now it parses the world into zones (either water or land), and manages exploration, expansion, and warfare separately for each zone.

When a land unit wants to get to a different landmass, it invokes the pathfinder to build a path which would get it there if the unit was capable of moving on water tiles. Then it checks which water zone did that path cross, and request a transport within that zone. If there is a transport available, it gets assigned to the job, otherwise the transport request will prompt coastal cities to construct it. The transport will then try to pick multiple passengers and unload them at a closest viable location on the target landmass.

New features in the demo mode

You can now speed up animations (up to 8x) by pressing the "fast forward" button in the bottom right corner. The button cycles between these presets: 1x (with all the normal animations and delays), 2x, 4x and 8x.

"Switch perspective" button in the bottom left corner above the unit context panel can now be used to observe the game from the perspective of another player (the one you have selected currently).

All important changes since v4 release (May 2018)

The game works directly in the browser!
You can try it right now.

Play Now Demo

Subscribe to development updates:

Send Feedback

Recent posts

Introducing support for mobile devices
Posted by Oleksandr on June 26, 2019

Naval units, new demo mode features
Posted by Oleksandr on March 3, 2019

Rivers, terrain rendering improvements
Posted by Oleksandr on May 19, 2018

Combat mechanics update, supply units, military ranks
Posted by Oleksandr on January 1, 2018