Going further

You can add a lot of fancy elements to this battle system that could really make it shine. A few recommendations are as follows:

  • Have the player and Dragons animate when attacking by moving them forward slightly
  • Give the Dragons floating health bars
  • Give the more powerful attacks a time limit or use limit of some sort, so that the player doesn't spam the highest level attack

Get Mastering Unity 2D Game Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.