https://github.com/cazala/decentraland-shoal-scene
Decentraland Shoal Scene
https://github.com/cazala/decentraland-shoal-scene
Last synced: about 2 months ago
JSON representation
Decentraland Shoal Scene
- Host: GitHub
- URL: https://github.com/cazala/decentraland-shoal-scene
- Owner: cazala
- Created: 2018-04-25T19:29:50.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-16T22:10:19.000Z (almost 7 years ago)
- Last Synced: 2025-02-26T07:41:40.220Z (about 2 months ago)
- Language: TypeScript
- Homepage:
- Size: 2.4 MB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dentraland Shoal Scene
This is an experiment using [Decentraland's SDK](https://developers.decentraland.org/). The idea was to bring the fish from [my personal site](https://caza.la) to the Metaverse.
The state is kept on a server (so every visitor would see the fish on the same positions) and the scene is being render on the server as well and broadcasted to each client. I used a modified flocking algorithm to make the creatures shoal together, and added a big blue one that chases the smaller ones.
Here's a short video of the result: [LINK](https://twitter.com/juancazala/status/990013897515130881)
# Try it out!
First make sure to install Decentraland's SDK if you haven't yet
```
npm install -g decentraland
```Then clone this repo and jump in
```
git clone https://github.com/cazala/decentraland-shoal-scene
cd decentraland-shoal-scene
```Now install/build/run the server
```
cd server
npm install
npm run build
npm start
```Finally on a different terminal go back to the root directory and run `dcl preview`
```
cd ..
dcl preview
```