Coder Social home page Coder Social logo

dimasik1502 / mc.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tominous/minecraft.js-1

0.0 0.0 0.0 25.57 MB

Open source Minecraft clone built with ThreeJS, ReactJS, GraphQL, and NodeJS.

License: GNU General Public License v3.0

CSS 13.35% HTML 0.17% JavaScript 86.47%

mc.js's Introduction

MC.JS

MC.JS brings the best-selling PC game "Minecraft" into the web with the power of javascript.

Disclaimer

๐Ÿ“Œ This project is a work in progress. There's still a lot of features waiting to be implemented, and the game is far from being the actual game.

Motivation

Having to open an additional app to play a game is sometimes too tiring. Therefore, I thought it'd be interesting to somehow implement Minecraft with javascript, essentially bringing the whole Minecraft game into the web. This not only takes away the tedious process of installing the game, it also brings the entire game to players within a couple clicks.

Screenshots

These are some screenshots taken directly from the project.

User Authentication

Neatly Styled Game UI

Awesome Graphics

Build Stack

Javascript.

Frontend

Backend

Authentication

Features

  • Player registration
  • Save worlds
  • Database support

Installation

Before cloning the repo or doing anything, be sure to install docker, node, prisma-cli and graphql-cli on your computer. After that, run the following commands:

# Clone the repository
git clone https://github.com/ian13456/mc.js.git

# Download packages for both server and client
yarn

# Export environment variables for prisma
# FOR WINDOWS
set PRISMA_MANAGEMENT_API_SECRET=my-secret
# FOR MAC/LINUX (recommend putting this into .bashrc)
export PRISMA_MANAGEMENT_API_SECRET=my-secret

# Start all services
yarn run init # only need this for first time running
yarn run start

After these commands, visit localhost:3000

Note

๐Ÿ“Œ MC.JS runs fastest on either Opera or Chrome.

Sources

mc.js's People

Contributors

shaoruu avatar baltaazr avatar dependabot[bot] 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.