remance / Masendor

Open source educational and historical battle action game, All helps accepted
MIT License
143 stars 32 forks source link

Unit cluster and visibility is quite bad in a larger battle. #69

Open remance opened 1 year ago

remance commented 1 year ago

Based on the demo version, the unit sprite visibility is very bad especially in combat. When 2 army collides, it pretty much become almost impossible to distinguish enemy/allies troop.

Not quite sure how to fix it yet. But here are some potential solutions:

  1. Introduce unit collide check to prevent sprite merge (maybe for both enemy and friend). Tricky (and likely reduce game performance) but would help make combat better and more organised as well.
  2. Make enemy sprite always have higher layer. Not a good solution overall.
  3. Maybe instead of collision detection, make map array that allow only one unit per position.
  4. Reduce number of unit. Simple solution that also improve game performance. But should be a last resource.