mirror of
https://github.com/He4eT/DotDashPit.git
synced 2026-05-05 01:47:22 +00:00
game: double-sized letters
This commit is contained in:
parent
2036f80a50
commit
cae26ee2db
1 changed files with 4 additions and 4 deletions
8
game.js
8
game.js
|
|
@ -383,14 +383,14 @@ function drawLetters() {
|
||||||
const d = getDirection(enemyPosition, player.position)
|
const d = getDirection(enemyPosition, player.position)
|
||||||
|
|
||||||
const letterPos = {
|
const letterPos = {
|
||||||
x: enemyPosition.x - d.x * 12,
|
x: enemyPosition.x - d.x * 18,
|
||||||
y: enemyPosition.y - d.y * 12,
|
y: enemyPosition.y - d.y * 18,
|
||||||
}
|
}
|
||||||
|
|
||||||
const screenPos = arenaToScreen(letterPos)
|
const screenPos = arenaToScreen(letterPos)
|
||||||
|
|
||||||
drawSprite(1, letterPos.x, letterPos.y)
|
rect(screenPos.x - 7, screenPos.y - 7, 16, 16, 5)
|
||||||
print(enemy.letter, screenPos.x - 2, screenPos.y - 2, 2, false, 1)
|
print(enemy.letter, screenPos.x - 4, screenPos.y - 4, 2, false, 2)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue