Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Implemented player phase modal, as well as some bug fixes #81
This pull request fixes issue #79 . Clicking on an enemy during the player's turn will not perma-lock the menu. This pull request also contains work in progress code towards implementing player/enemy turn modals (commented out).
UPDATE: This pull request also fixes issue #80, player units can no longer stack on each other.
UPDATE 2: This pull request now implements displaying the player phase modal (enemy phase modal still needs to be hooked). Here are the new changes:
This feature gives some clear separation to the gameplay, and helps the player intuitively know when they can and cannot move their units. I am currently working on displaying the enemy phase modal as well, but this code can be folded in at your own discretion and I can send a separate pull request if needed when that feature is complete.
UPDATE 3: This pull request now implements the enemy phase modal too, but it currently does not display for the proper time. The enemies will not move until the modal is done being displayed (as expected), but the modal does not appear for the time set. Perhaps @chessmasterhong could look into this before merging?