mc.js-legacy
mc.js-legacy copied to clipboard
ARCHIVE OF MC.JS (DMCA'ed), NEW REPO: mine.js
Miner.js
An open source voxel game in javascript that can be played in your browser.
Disclaimers
:pushpin: 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.
:pushpin: 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
:pushpin: Miner.js runs fastest on either Opera or Chrome.