GithubHelp home page GithubHelp logo

tweedegolf / minecraft-character-configurator Goto Github PK

View Code? Open in Web Editor NEW
17.0 10.0 4.0 1.99 MB

Simple Minecraft character configurator using React, Three.js and react-three or react-three-renderer.

Ruby 1.34% JavaScript 85.58% HTML 3.77% CSS 9.31%

minecraft-character-configurator's Introduction

Minecraft Character Configurator

There are 3 versions of the configurator: one made with react-three and 2 made with react-three-renderer. This shows you the different approach of these libraries.

In react-three-renderer Three.js' render method is called every animation frame by default; the third version shows you how you can disable automatic rendering in react-three-renderer and call Threejs' render method only when the component has been updated.

Check the live examples to see how this works.

Installation

Install livereload:

To install dependencies for each version of the configurator you have enter the react-three, react-three-renderer and the react-three-renderer2 folder subsequently and run:

  • npm install

Run and build

You can start livereload by running this command in the root folder:

  • run bundle exec guard

If you want to watch or build one of the versions of the configurator, you have to cd into the acccording folder and run:

  • npm run watch starts a local webserver and watchify
  • npm run build builds app and generates source map

The local webserver for the react-three version runs at port 8000 and the react-three-renderer version at port 8001.

minecraft-character-configurator's People

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

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.