mirror of
https://github.com/He4eT/DotDashPit.git
synced 2026-05-04 17:37:23 +00:00
game: update letters
This commit is contained in:
parent
ce7727161c
commit
135fdb60b4
1 changed files with 32 additions and 6 deletions
38
game.js
38
game.js
|
|
@ -301,7 +301,6 @@ function gameoverScreen() {
|
||||||
reset()
|
reset()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function gameover() {
|
function gameover() {
|
||||||
|
|
@ -576,15 +575,15 @@ function drawEnemyLetters() {
|
||||||
const d = getDirection(player.position, enemyPosition)
|
const d = getDirection(player.position, enemyPosition)
|
||||||
|
|
||||||
const letterPos = {
|
const letterPos = {
|
||||||
x: enemyPosition.x + d.x * 18,
|
x: enemyPosition.x + d.x * 15,
|
||||||
y: enemyPosition.y + d.y * 18,
|
y: enemyPosition.y + d.y * 15,
|
||||||
}
|
}
|
||||||
|
|
||||||
const screenPos = worldToScreen(letterPos)
|
const screenPos = worldToScreen(letterPos)
|
||||||
|
|
||||||
rect(screenPos.x - 7, screenPos.y - 7, 16, 16, 4)
|
rectb(screenPos.x - 4, screenPos.y - 5, 10, 11, 4)
|
||||||
rectb(screenPos.x - 7, screenPos.y - 7, 16, 16, 3)
|
rect(screenPos.x - 4, screenPos.y - 5, 10, 11, 2)
|
||||||
print(enemy.letter, screenPos.x - 4, screenPos.y - 4, 2, false, 2)
|
font(enemy.letter, screenPos.x - 3, screenPos.y - 3, 0, 8, 8, true)
|
||||||
|
|
||||||
if (
|
if (
|
||||||
getDistance(player.position, enemy.positions[0]) <
|
getDistance(player.position, enemy.positions[0]) <
|
||||||
|
|
@ -781,6 +780,32 @@ const BTN_Y = 7
|
||||||
// 018:00a0a00000000000a0aaa0a000aaa000a0aaa0a00000000000a0a00000000000
|
// 018:00a0a00000000000a0aaa0a000aaa000a0aaa0a00000000000a0a00000000000
|
||||||
// 019:aa000aa0aa000aa000aaa00000aaa00000aaa000aa000aa0aa000aa000000000
|
// 019:aa000aa0aa000aa000aaa00000aaa00000aaa000aa000aa0aa000aa000000000
|
||||||
// 020:aa000aa0aaaaaaa00aaaaa000aaaaa000aaaaa00aaaaaaa0aa000aa000000000
|
// 020:aa000aa0aaaaaaa00aaaaa000aaaaa000aaaaa00aaaaaaa0aa000aa000000000
|
||||||
|
// 065:0666666006600060066000600666666006600060066000600660006000000000
|
||||||
|
// 066:0666660006600600066006000666666006600060066000600666666000000000
|
||||||
|
// 067:0666666006600060066000000660000006600000066000600666666000000000
|
||||||
|
// 068:0666660006600060066000600660006006600060066000600666660000000000
|
||||||
|
// 069:0666666006600000066000000666600006600000066000000666666000000000
|
||||||
|
// 070:0666666006600000066000000666660006600000066000000660000000000000
|
||||||
|
// 071:0666666006600060066000000660066006600060066000600666666000000000
|
||||||
|
// 072:0660006006600060066000600666666006600060066000600660006000000000
|
||||||
|
// 073:0066660000066000000660000006600000066000000660000066660000000000
|
||||||
|
// 074:0066666000006600000066000000660006006600060066000666660000000000
|
||||||
|
// 075:0660006006600600066060000666060006600060066000600660006000000000
|
||||||
|
// 076:0660000006600000066000000660000006600000066000600666666000000000
|
||||||
|
// 077:0666066006666660066060600660606006600060066000600660006000000000
|
||||||
|
// 078:0660006006660060066060600660066006600060066000600660006000000000
|
||||||
|
// 079:0666666006600060066000600660006006600060066000600666666000000000
|
||||||
|
// 080:0666666006600060066000600660006006666660066000000660000000000000
|
||||||
|
// 081:0666666006600060066000600660006006600060066006000666606000000000
|
||||||
|
// 082:0666666006600060066000600660006006666660066006000660006000000000
|
||||||
|
// 083:0666666006600060066000000666666000000660060006600666666000000000
|
||||||
|
// 084:0666666000066000000660000006600000066000000660000006600000000000
|
||||||
|
// 085:0660006006600060066000600660006006600060066000600066660000000000
|
||||||
|
// 086:0660006006600060066000600660006006600060006606000006600000000000
|
||||||
|
// 087:0660006006600060066000600660606006606060066666600066060000000000
|
||||||
|
// 088:0660066006600660006666000006600000666600066006600660066000000000
|
||||||
|
// 089:0660066006600660066006600066660000066000000660000006600000000000
|
||||||
|
// 090:0666666006000660000066000006600000660000066000600666666000000000
|
||||||
// </SPRITES>
|
// </SPRITES>
|
||||||
|
|
||||||
// <MAP>
|
// <MAP>
|
||||||
|
|
@ -958,3 +983,4 @@ const BTN_Y = 7
|
||||||
// <PALETTE>
|
// <PALETTE>
|
||||||
// 000:000000002b3607364221292c586e75657b83839496ffffffb58900cb4b16dc322fd336826c71c4268bd22aa198859900
|
// 000:000000002b3607364221292c586e75657b83839496ffffffb58900cb4b16dc322fd336826c71c4268bd22aa198859900
|
||||||
// </PALETTE>
|
// </PALETTE>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue