Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/decentraland-scenes/beer-dispenser

A beer dispenser that uses P2P messaging so that you can pour beer for yourself and friends.
https://github.com/decentraland-scenes/beer-dispenser

decentraland

Last synced: about 1 month ago
JSON representation

A beer dispenser that uses P2P messaging so that you can pour beer for yourself and friends.

Awesome Lists containing this project

README

        

# Beer Dispenser
_demo of beer-dispenser scene running in preview._

![demo](https://github.com/decentraland-scenes/beer-dispenser/blob/main/screenshots/beer-dispenser.gif)

## Description
A beer dispenser that uses P2P messaging so that you can pour beer for yourself and friends. To view the scene, please visit [here](https://beer-dispenser.vercel.app/).

## Instructions
Pick up and put down the beer glass using the E key - you will only be able to place the beer glass on a flat surface that's pointing upwards. To fill a glass, place it at one of the bases on the dispenser and then press on the corresponding tap using the the E key again; to drink the beer just press the F key. Use your mouse to look around and W A S D keys on your keyboard to move forward, left, backward and right respectively. Finally, pressing the Space key will make your avatar jump.

If you launch a scene preview and open it in two (or more) browser windows, each window will be interpreted as a separate player and a mock communications server will keep these players in sync.

_Note: If you open separate tabs in the same window, the interaction won’t work properly, as only one tab will be treated as active by the browser at a time._

## Try it out

**Install the CLI**
Download and install the Decentraland CLI by running the following command:

```
$ npm i -g decentraland
```

**Previewing the scene**
Download this example and navigate to its directory, then run:

```
$ dcl start
```

## Acknowledgements
- _beerPump.mp3_ modified from https://freesound.org/people/RG_Campus/sounds/392893/
- _error.mp3_ modified from https://freesound.org/people/distillerystudio/sounds/327736/
- _pickUp.mp3_ modified from https://freesound.org/people/drummerman/sounds/368130/
- _putDown.mp3_ modified from https://freesound.org/people/Nightflame/sounds/368614/
- _swallow.mp3_ modified from https://freesound.org/people/freakinbehemoth/sounds/243635/