Godot multiplayer hex strategy game for mobile.
Including;
- Touch Top-down Camera Controller
- Simplex-noise map generation and resource distribution
- Technology, units, cities, roads and resources.
- Dijkstra’s Algorithm based One-Turn pathfinding.
- Tech Tree
- Fog of War - 3d default (needs to be optimised) or simple 2d
- Civilizations
- Firebase implementation - Accounts and multiplayer games
- Audio player
Fog of war 3D - This is the default fog of war, it uses a rasied hex and instanciates edges along the edges of the fog. It is un-optimised currently and will use more processing and a ltitle more graphical power than the simple 2d fog of war. 2D - This simple version of the fog of war can be enabled by commenting out or removing all code marked "#Disable if using 2d Simple fog" on Hexmap.gd, City.gd, Unit.gd and of course FogOfWar.gd Set the fog of war mesh to a y transform of only 0.05 or so and enable no depth test on the material flags. This will run a little lighter and however you may have to tweak it a bit as it will currently draw over objects like units and cities in a undesired way.
The Hex implementation is based on RedBlobGame's tutorial https://www.redblobgames.com/grids/hexagons/ The pathfinding implementation is based on RedBlobGame's tutorial https://www.redblobgames.com/pathfinding/a-star/introduction.html
Feel free to use any parts of this project as a base for creating strategy games in Godot.