Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.87 KB

readme.md

File metadata and controls

56 lines (36 loc) · 1.87 KB

BreakLock

Bring me to the game!

Silly HTML5 game, mobile first. BreakLock is a hybrid of Mastermind and the Android pattern lock. A game you gonna love to hate.


Translation and l10n system implemented by @HKalbasi

Hopefully this game (codebase included) will drive you mad.

The goal of this project was the discover progressive Web apps with service workers, and play with Webpack. Also to entertain because the tube is quite boring, especially the Central line on peak time.

If you like this game, you must convince 3 people to like it, who will have to convince 3 other people... and this project will turn into the first OSS sect. Also, if you hate it, you must convince 3 people to hate it, who will have to convince 3 other people...

As long as GitHub provide these sweet gh-pages, this project will be under MIT, without ads, free.

If you're curious about pattern combinations, run ./lab/bruteCalc.js.

Contribute

Contributions are welcome, especially pull-requests. There are a lot of ideas to implement, but less people when it come to code. This is why issues are for bugs only.

Feel free to translate this game in your language by adding a translation in src/l10n/.

Translation

  • Copy src/l10n/en.yml and paste it as yl.yml (yl stand for your locale).
  • Translate content
  • Add your locale in this files:
    • index.html
    • src/controller/langselector/langselector.ctrl.js
  • Open a pull request.

Build

# Install packages
npm install

# Build it
npm run build

# Test it locally
# 1. Create a symlink called 'breaklock' pointing to 'public'
ln -s public breaklock

# 2. Run a local server
python3 -m http.server .     # For python3
python -m SimpleHTTPServer . # For python2
http-server -p 8000 .        # For NPM pkg http-server

# 3. Go to http://127.0.0.1:8000/breaklock/