在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mc.js开源软件地址:https://gitee.com/mirrors/mc.js开源软件介绍:DisclaimerThis 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. MC.JS brings the best-selling PC game Minecraft into the web with the power of Javascript.MotivationHaving 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 onto 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. ScreenshotsThese are some screenshots taken directly from the project. User AuthenticationNeatly Styled Game UIAwesome GraphicsBuild StackJavascript. FrontendBackendAuthenticationFeatures
InstallationBefore 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 librariesyarn global add prisma graphql-cli nodemon# Clone the repositorygit clone https://github.com/ian13456/mc.js.git# Download packages for both server and clientyarn# Export environment variables for prisma# FOR WINDOWSset PRISMA_MANAGEMENT_API_SECRET=my-secret# FOR MAC/LINUX (recommend putting this into .bashrc)export PRISMA_MANAGEMENT_API_SECRET=my-secret# Start all servicesyarn run init # only needed when running for the first timeyarn run start After these commands, visit NoteMC.JS runs fastest on either Opera or Chrome. Sources |
请发表评论