I’ve been getting a bit annoyed at the slow progress on the WebGL RTS4 project. I know what the problem is; I’m over-engineering it, trying to design it to be very general purpose and flexible, but as such it becomes very difficult to make progress.
I decided instead to see how far I could get building in a more purpose-built way. Over the last few weeks I’ve been putting together a model pack for Unity, to be released on the Asset Store along with a sample project to see the assets in action; this would be my sample project. The models were created in a hand-drawn cartoony style.
The current version was built over about a week:
- Day 1: Pathfinding and unit movement
- Day 2: Resource management, gathering, and melee combat
- Day 3: Town Centre model, buildings as pathfinding obstructions
- Day 4: Placement of buildings, terrain fog of war
- Day 5: Hydra, Unit fog of war, FOW fading to grayscale over time
Some of the code is designed similarly to the WebGL RTS4 port, but with more stuff assumed (ie. only 1 action can be active at a time, terrain is a heightmap, buildings are rectangular).