GithubHelp home page GithubHelp logo

ninest / typer Goto Github PK

View Code? Open in Web Editor NEW
61.0 3.0 7.0 2.3 MB

⌨️ The 10-second typing game

Home Page: https://typer.now.sh/

License: MIT License

JavaScript 49.30% Pug 27.21% SCSS 23.50%
typing-game parcel typing javascript deno firebase retro arcade-game

typer's Introduction

The 10-second typing game

Made with Deno Make a PR MIT Buy Me A Coffee

demo

🎮 How to play

  1. Visit https://typerapp.now.sh/
  2. To start a game, type "start"

You now have 10 seconds to type out all the words displayed. For every word you type correctly, your score increases, and you also get 1 extra second. Can you beat my highscore of 35? (you probably can)

🚀 Features

  • 10 seconds to type
    • Get an extra second for each word typed (small change of getting 2 seconds)
    • Randomly get a password field to spice the game up (1/6 chance)
  • Save your highscore locally

🛠 Build setup

Clone or fork the repository, then run the commands to start the development server:

npm i
npm run dev

To build the app, run

npm run build

Encryption

In src/scripts/, create keys.js with the following:

export const key = 'a secret key';

Here's one way to generate a random string:

# python
from base64 import b64encode
from os import urandom

random_bytes = urandom(32)
secret = b64encode(random_bytes).decode('utf-8')

print(secret)

Note that the encryption is done client-side!

Hosting

The game is hosted with Vercel. To host a debug version of the app, run

vc

To host the production version of the app, run

vc --prod

Firebase

Firebase and leaderboards have been removed. Please check the "firebase" branch for more details.

♥️ Support

If you liked this project, consider supporting by

  • ⭐️ Starring the repository
  • 🎒 Checking out my other projects
  • ☕️ Buying me coffee

📜 License

MIT

typer's People

Contributors

dependabot[bot] avatar lalugue avatar ninest avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

typer's Issues

Indicator to show that time has increased

Users don't know that when you spell a word correctly you get an extra second (or get 2 seconds if you're lucky).

Add a green "+1" in the timer that displays for half a second to show this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.