Build & Defend (v2)

Overview

An ongoing personal defender builder project that develops further from the builder defender prototype version 1.

This version is inspired by the game Shogun developed by SEGA. It includes building resources touwers to collect resources, buying different towers and units, moving units by commands, A* pathfinding for units, and behavior tree for enemy AI.

Technical features

1. Build resource towers to collect resources


There are different types of resources such as stone, crystal and wood. Based on the names of the towers, you can collect the according resources when you build the towers. The resources are collected faster when the towers are placed near the resource nodes (indicating by the + signs next to the tower when you initially place them)

2. Buy units / towers from built towers

Once towers are built, player can select different towers to buy different units/towers using the resources they've collected.

3. Unit movement commands with A* pathfinding

Each unit can be commanded to either move forward or stop. Unit will find their way to the end goal using A* pathfinding algorithm. 

In the future there will be options to command the unit to move up or down one tile.

4. Unit fighting system

Different units have their own way of fighting when encountering an enemy on their way.

Currently there is short range fighting (sword) and long range fighting (gun)

5. Enemy AI - Behavior Tree

I'm developing enemy AI using Behavior Tree. Besides A* algorithm that enables them to find their own path, they will be able to fight with units and make their decisions based on the game state.