JSPM

  • Created
  • Published
  • Downloads 125
  • Score
    100M100P100Q35745F

Easy way to test your HTML5 game before releasing it on Rune.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rune-games-cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Rune Games CLI

    npm GitHub Workflow Status (master)

    Test your HTML5 game inside a mock Rune app to ensure your game works with the Rune SDK.

    Install

    yarn global add rune-games-cli
    # or
    npm install -g rune-games-cli

    Here's download links for the yarn and npm package managers in case you don't already have one installed.

    Use

    Test your game

    cd game/path && rune start
    # or
    rune start game/path
    # or
    rune start https://game-url.com

    You should see something like

    ╭──────────────────────────────────────────────────────────────────────────╮
    │                                                                          │
    │    Test locally: http://localhost:3000                                   │
    │    Test on your phone: http://192.168.50.252:3000 (same network only)    │
    │    Game: /my-games/my-game-1                                             │
    │                                                                          │
    │    Press `q` to exit                                  Rune CLI v1.1.0    │
    │                                                                          │
    ╰──────────────────────────────────────────────────────────────────────────╯

    When you open this URL you should see your game running inside a mock Rune app. Press the ⚙️ icon to open the developer tools. There you can e.g. change the game challenge number.

    Upload your game

    cd game/path && rune upload
    # or
    rune upload game/path

    This command will log you in using your email (if it's the first time) and then guide you through the game upload process.

    See your games

    rune list