HEX-CLAN / PyBattle

University of Gdansk
1 stars 0 forks source link

Add in-cell aiming #7

Open AChorostian opened 5 years ago

AChorostian commented 5 years ago

I suggest mapping one cell, like in this sketch. (additional lines just show how hexagon area should be interpreted)

image

This will let a user shot another cell on the map.

malinowskikam commented 4 years ago

Tile's get_angle() method can be used to aim the artillery. We can use this to calculate exact pixel which got hit, and handle it similar to mouse event to get which tile got hit.