Game Update: Archer Walk Animation


Testing the walk animation of the Archer Unit + a complete change in internal architecture of the code. Now it’s easyer to experiment.

Internally, all Units (Warriors, Archers, etc) are defined by 3 objects now. The Unit Settings Object, the Unit Behaviour Object and the Unit Sprite Object. All these 3 objects interact with each other to make the Unit work.

Behaviour Objects uses Tasks Objects to make diferent stuff. Tasks uses a variable number of actions implemented as a Strategy Pattern.

Advertisements