game: labels

This commit is contained in:
He4eT 2025-06-16 09:52:41 +02:00
commit 2d8f315781

View file

@ -273,11 +273,10 @@ function startScreen() {
cls(0) cls(0)
map(0, 0, 30, 17) map(0, 0, 30, 17)
const title = 'Morse Pit' font('DOT DASH PIT', 15, 15, 0, 7, 8, false, 1)
print(title, 12, 12, 3, false, 2)
const instruction = 'Press any key to start' print('HIGH SCORE:', 7, 118, 6, false)
print(instruction, 12, 30, 4) print('0'.padStart(14, ' '), 152, 125, 6, true)
if (anyKeyPressed()) { if (anyKeyPressed()) {
currentScreen = 'gameScreen' currentScreen = 'gameScreen'
@ -294,7 +293,7 @@ function gameoverScreen() {
drawPlayer() drawPlayer()
if (effects.length === 0) { if (effects.length === 0) {
const title = 'Game Over' const title = 'GAME OVER'
print(title, 7, 118, 10, false) print(title, 7, 118, 10, false)
print(player.score.toString().padStart(14, ' '), 152, 125, 6, true) print(player.score.toString().padStart(14, ' '), 152, 125, 6, true)