GithubHelp home page GithubHelp logo

michaelgira23 / among-us-real-life Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 8.0 1.85 MB

Among Us in real life

JavaScript 77.40% CSS 2.21% HTML 20.38%
among-us amongus among real-time realtime reallife real-life amogus

among-us-real-life's Introduction

Among Us in real life

I hacked together this small little web app for facilitating a game of Among Us in real life.

Features

  • Assign impostors/crewmates
  • Assign tasks
  • Checking off tasks updates a global progress bar in real-time

Audio recordings from https://www.voicy.network/pages/among-us

Screenshot

Usage

This was built for personal use, but anyone is welcome to use this for hosting their own game.

1. Configure the game

You may want to modify the following properties located in src/index.js:

TASKS - An array of strings that consist of all possible tasks. These will be randomly assigned to players.

N_TASKS - Number of tasks to assign each player

N_IMPOSTORS - Number of impostors to assign each round

2. Start the backend

Start the backend with

$ npm install
$ npm start

ℹī¸ Use a utility like Nodemon to automatically restart the backend upon any changes. This is useful when modifying the number of impostors or tasks.

3. Connect to the admin dashboard

Visit http://localhost:4046/admin to access the admin panel. There is a single button to start the game.

Pressing the start button will reset task progress, assign new tasks, and assign impostors. Press it once all players connect, otherwise you will have to press it again.

4. Invite friends to join

Players may access the the game at http://localhost:4046. On other computers (or phones), you will need to enter the computer's local IP or use a tunneling service like ngrok. Alternatively, you could deploy this yourself.

Known issues

  • Sometimes, duplicate tasks are assigned (temporary workaround is to start another game)
  • On some Android phones, hiding the browser will reset its state, therefore losing your tasks

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.