Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/decentraland-scenes/coconut-shy

A coconut shy built using cannon.js physics engine.
https://github.com/decentraland-scenes/coconut-shy

decentraland

Last synced: about 1 month ago
JSON representation

A coconut shy built using cannon.js physics engine.

Awesome Lists containing this project

README

        

# Coconut Shy
_demo of coconut-shy scene running in preview._

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

## Description
A coconut shy built using [cannon.js](https://github.com/schteppe/cannon.js) physics engine. This scene demonstrates interactions between multiple dynamic objects. To view the scene, please visit [here](https://coconut-shy.vercel.app/). Note: You can press the P key to adjust the graphics settings.

## Instructions
Grab a ball using the E key, then use your mouse to aim in the direction you want to throw the ball. Press and hold the Left Mouse Button to trigger the 'power' meter to the bottom right of the screen, which controls how hard you throw the ball. To release the ball, let go of the Left Mouse Button as soon as the meter reaches your desired 'power' level. In terms of basic movement: 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.

## 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
- All sound effects are from [Mordi](http://www.mordi.net/)