CommandLineHeroes / clh-bash

Arcade game to show your Command Line Hero skills! The game challenges you to enter as many valid commands as you can in 60 seconds!

Home Page:https://www.redhat.com/en/command-line-heroes/bash/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

clh-bash

screenshot from 2019-02-06 09-54-54

Development

Install dependencies.

npm install

Extract the compressed MTL and OBJ files.

npm run extract

Extract the compressed MTL and OBJ files for Windows OS.

npm run unzip

Start the dev server.

npm start

If you need to make changes to MTL/OBJ files and want to preserve them, run this to compress them. Only gzipped MTL/OBJ files are saved in the repo.

npm run compress

Leaderboard selection

Bash supports multiple options for leaderboard storage. The default is in-browser localStorage. A networked leaderboard is also supported, through sending leaderboard entries to a Parse server.

Networked leaderboards with Parse

If you want a networked leaderboard, you must have a Parse instance up and running. Then, open src/config.js and change PARSE_URL to point to the URL of your parse server.

Finally, when you launch Bash, add &storage=parse to the end.

Selecting a leaderboard namespace

Both localStorage and Parse leaderboard support namespacing. In other words, you can give the leaderboard a name. This is especially useful if you need to maintain multiple leaderboards, for tournament rounds, timed events at conferences, etc. Switching between leaderboards is as easy as changing the namespace.

Then, when you launch Bash, add &name=NAMESPACE to the end of Bash's URL. Note that you can change the word NAMESPACE to be anything you want.

How to get Help

  1. Post a question in the repo issues
  2. Ask a question in real-time in our public Discord server
  3. Send a tweet to one of the twitter links below social

Community

Join our public Discord server!

Social

About

Arcade game to show your Command Line Hero skills! The game challenges you to enter as many valid commands as you can in 60 seconds!

https://www.redhat.com/en/command-line-heroes/bash/index.html

License:GNU General Public License v3.0


Languages

Language:JavaScript 89.0%Language:CSS 7.9%Language:HTML 2.2%Language:SCSS 1.0%