Skip to content
This repository was archived by the owner on Jun 14, 2025. It is now read-only.

add pbhs module, a module for tracking game high scores altogether in one file.#68

Open
gnargle wants to merge 4 commits intoCodyTolene:mainfrom
gnargle:add-pbhs-module
Open

add pbhs module, a module for tracking game high scores altogether in one file.#68
gnargle wants to merge 4 commits intoCodyTolene:mainfrom
gnargle:add-pbhs-module

Conversation

@gnargle
Copy link
Copy Markdown
Contributor

@gnargle gnargle commented May 21, 2025

Description

Added a new module, pbhs, to track game high scores easily. This can be used as a drop-in module with any game, simply use the commands

let phs = require("pbhs").initPipboyHighScores();

phs.addHighScore(gameName, score) //returns true if adding the score succeeds
phs.readHighScores("piptris") //returns an array of scores

App to view high scores for every game will come later.

  • Add module to the USER/modules directory.
  • Module is a .js file is PascalCase.

Pull Request Checklist (to be filled by the reviewer)

  • Tested the installation/update.
  • Tested and working on the Pip-Boy.

@gnargle gnargle requested a review from CodyTolene as a code owner May 21, 2025 21:45
@gnargle gnargle self-assigned this May 21, 2025
@CodyTolene

This comment was marked as outdated.

@CodyTolene
Copy link
Copy Markdown
Owner

You should now be able to use modules with the new structure 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants