mirror of
https://github.com/He4eT/DotDashPit.git
synced 2026-05-04 17:37:23 +00:00
game: labels
This commit is contained in:
parent
eb67c7729e
commit
2d8f315781
1 changed files with 4 additions and 5 deletions
9
game.js
9
game.js
|
|
@ -273,11 +273,10 @@ function startScreen() {
|
|||
cls(0)
|
||||
map(0, 0, 30, 17)
|
||||
|
||||
const title = 'Morse Pit'
|
||||
print(title, 12, 12, 3, false, 2)
|
||||
font('DOT DASH PIT', 15, 15, 0, 7, 8, false, 1)
|
||||
|
||||
const instruction = 'Press any key to start'
|
||||
print(instruction, 12, 30, 4)
|
||||
print('HIGH SCORE:', 7, 118, 6, false)
|
||||
print('0'.padStart(14, ' '), 152, 125, 6, true)
|
||||
|
||||
if (anyKeyPressed()) {
|
||||
currentScreen = 'gameScreen'
|
||||
|
|
@ -294,7 +293,7 @@ function gameoverScreen() {
|
|||
drawPlayer()
|
||||
|
||||
if (effects.length === 0) {
|
||||
const title = 'Game Over'
|
||||
const title = 'GAME OVER'
|
||||
print(title, 7, 118, 10, false)
|
||||
print(player.score.toString().padStart(14, ' '), 152, 125, 6, true)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue