Yao-class-cpp-studio / battle_game

MIT License
9 stars 87 forks source link

Added key-controlled rotation #488

Closed ghost closed 1 year ago

ghost commented 1 year ago

I have added the key-controlled rotation of the turret of 'tiny_tank', which is proposed by a classmate. If the displacement of the cursor is less than 1 unit, the turret will then be able to be controlled with direction keys(left&right). So if the cursor ceases to move, the player can still rotate the turret using left and right keys. Also, the initial countdown is resolved, though it might have already been addressed by other classmates.

qinchuanhui commented 1 year ago

no auto-check is running, maybe just commit one more time to trigger it