An open source voxel game in javascript that can be played in your browser.
📌 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.
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.
These are some screenshots taken directly from the project.
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
Javascript.
- Player registration
- Save worlds
- Database support
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
📌 Miner.js runs fastest on either Opera or Chrome.