▣
module · drop-in viewer
progress
Each player's hangout progression, kept on their own machine (runtime data, survives restarts) and shared with the room as a small card.
by·posted 3d ago
What it does
progress
Each player's hangout progression, kept on their own machine (runtime data, survives restarts) and shared with the room as a small card.
- Play time: per console and per game, while you are the one playing (holding the Game Boy, or a controller on a TV game with a game running).
- XP and level: playing earns 10 XP a minute (15 when two people play the TV together), hanging out with
at least one other person earns 2 a minute, milestones add a bonus. Level n needs
100 + 60 (n-1)XP. - Milestones: real things done in the room (first game, co-op on the TV, passing the Game Boy on, uploading a cartridge, an hour on a console, playing every console, playing from the sofa...).
local Progress = require("stations.progress")
Progress.playing(consoleId, title, dt, coop) -- each frame you play
Progress.event("upload") -- "upload", "handover", "seated", "watched", "pinned"
Progress.photo() -- a photo taken with the instant camera
Progress.tick(dt) -- once a frame (HangoutHud does it)
Progress.level() -> (level, xpIntoLevel, xpForLevel)
Progress.cards() -> { {peer, name, level, xp, minutes, top, milestones} } -- everyone, you first
Progress.milestones() -> { {id, title, text, done} }
Progress.onToast(fn(title, text)) -- a milestone or level up
Channel: progress.card (each peer's card, on change and every 15 s; answered on progress.hello).
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.