OmgImAlexis / mc.js-1

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Miner.js

An open source voxel game in javascript that can be played in your browser.

Disclaimers

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

๐Ÿ“Œ Miner.js is not associated with Mojang or Minecraft in any sort of official capacity.

Motivation

We thought it would be interesting to design a game that is inpsired by the hugely popular game "Minecraft" with javascript. We are interested to see if javascript can deliver quality graphics and performance, and interactive multiplayer gameplay within a 3D voxel type environment.

Screenshots

These are some screenshots taken directly from the project.

Awesome Graphics

Screenshot taken with paper-cut-resource-pack

Screenshot taken with paper-cut-resource-pack

Screenshot taken with paper-cut-resource-pack

Screenshot taken with paper-cut-resource-pack

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 and node on your computer. After that, run the following commands:

# Install the prerequisite libraries
yarn global add prisma graphql-cli nodemon

# 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 needed when running for the first time
yarn run start

After these commands, visit localhost:3000

Note

๐Ÿ“Œ Miner.js runs fastest on either Opera or Chrome.

Sources

About

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

License:GNU General Public License v3.0


Languages

Language:JavaScript 86.3%Language:CSS 13.5%Language:HTML 0.2%