mirror of
https://github.com/He4eT/DotDashPit.git
synced 2026-05-04 17:37:23 +00:00
game: show hints in short radius
This commit is contained in:
parent
d96e0861c0
commit
d90e56661b
1 changed files with 6 additions and 1 deletions
7
game.js
7
game.js
|
|
@ -491,7 +491,12 @@ function drawLetters() {
|
||||||
rectb(screenPos.x - 7, screenPos.y - 7, 16, 16, 3)
|
rectb(screenPos.x - 7, screenPos.y - 7, 16, 16, 3)
|
||||||
print(enemy.letter, screenPos.x - 4, screenPos.y - 4, 2, false, 2)
|
print(enemy.letter, screenPos.x - 4, screenPos.y - 4, 2, false, 2)
|
||||||
|
|
||||||
drawHint(enemy.letter, screenPos.x - 7, screenPos.y + 9)
|
if (
|
||||||
|
getDistance(player.position, enemy.positions[0]) <
|
||||||
|
enemy.dangerZone * 3
|
||||||
|
) {
|
||||||
|
drawHint(enemy.letter, screenPos.x - 7, screenPos.y + 9)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue