Skip to content

player (your run)

How your run is going: score, combo, misses, accuracy, health. Read only - scores stay honest - but perfect for a combo counter, or for making things wilder the better you play.

How to use it

Read only. player is also your fighter - player.x, player.pose, ... are there.

Psych: score, combo, misses, rating, health, downscroll · Kade: —

Example code

-- The screen goes a little redder the lower your health is.
function onFrame(dt)
    screen.color = #FF0000
    screen.alpha = (1 - player.health) * 0.25
end

Properties

Property Kind Default
player.downscroll switch, read false The player's own scroll setting (true = downscroll).
player.score number, read 0 Your score.
player.combo number, read 0 Notes hit in a row.
player.misses number, read 0 Notes missed.
player.accuracy number, read 0 0-100.
player.health number, read 1 0-1 - always 1 in practice, which has no health. Change it with [setHealth / …

player.downscroll

switch player.downscroll = false

read only

The player's own scroll setting (true = downscroll).

player.score

number player.score = 0

read only

Your score.

player.combo

number player.combo = 0

read only

Notes hit in a row.

player.misses

number player.misses = 0

read only

Notes missed.

player.accuracy

number player.accuracy = 0

read only

0-100.

player.health

number player.health = 1

read only

0-1 - always 1 in practice, which has no health. Change it with setHealth / addHealth.