GithubHelp home page GithubHelp logo

michaljaz / webmc Goto Github PK

View Code? Open in Web Editor NEW
1.3K 19.0 191.0 77.94 MB

PoC Minecraft client written in Javascript (1.16.5 offline mode working)

Home Page: http://webmc.js.org/

License: MIT License

HTML 2.33% JavaScript 92.09% SCSS 5.48% Dockerfile 0.10%
three-js 3d-game web-minecraft minecraft minecraft-client browser-minecraft minecraft-web browser-game web client

webmc's Introduction

Hi there πŸ‘‹

michaljaz github stats

Top Langs

Certifications

webmc's People

Contributors

bjazdzyk avatar crappyrules avatar dependabot[bot] avatar ferretwithaberet avatar fox3000foxy avatar gitter-badger avatar imgbotapp avatar kaffinpx avatar michaljaz avatar nexusnull avatar realpeha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webmc's Issues

Stuck on loading assets screen

Running in Firefox on an iPad Air 4 iOS 14.4. Running vanilla mc server 1.16.5 offline mode.
Running web-minecraft latest commit in dev mode.

I suspect something funky is happening with WebKit html rendering over something like Chromium. In the web-minecraft logs I can see that my character is connecting, and in the minecraft server logs I see that the client connects successfully.

Let me know what other information you would like from me, I am happy to help in debugging all that I can, I absolutely love this project idea!!

Premium account support

It is need to be added premium account support to play on 'online-mode=true' servers.
Premium password will be stored encrypted in cookies or localStorage.

Umm

Is it just me or does this feel super incomplete?

Better flying

Use bot.flyTo() function. Use Tween.js and also add flyspeed.

Moving Demo to a VDS

Heroku is slow, we can improve demo`s lag by moving a better vds with good network.

Consider using prismarine-viewer and contributing to it

prismarine-viewer is a library maintained by the prismarineJS community that provides functions to render a minecraft world.
It seems like you implemented some part of it, but you also implemented some features that are missing in prismarine-viewer and you are missing some other features. Both projects could be benefit if you decide to use prismarine-viewer for your rendering.

https://github.com/PrismarineJS/prismarine-viewer

https://prismarine.js.org/prismarine-viewer/

Js.org

Use js.org instead of heroku

I cant "npm run build"

cmd : sudo npm run build
result:

[email protected] prebuild /home/lsannier/Desktop/web-minecraft
node src/server/prebuild

Generated blocksDefinitions: /home/lsannier/Desktop/web-minecraft/src/server/../client/static/assets/blocks/blocksDef.json

internal/modules/cjs/loader.js:983
throw err;
^

Error: Cannot find module '../build/Release/canvas.node'
Require stack:

  • /home/lsannier/Desktop/web-minecraft/node_modules/canvas/lib/bindings.js
  • /home/lsannier/Desktop/web-minecraft/node_modules/canvas/lib/canvas.js
  • /home/lsannier/Desktop/web-minecraft/node_modules/canvas/index.js
  • /home/lsannier/Desktop/web-minecraft/src/server/atlasCreator.js
  • /home/lsannier/Desktop/web-minecraft/src/server/itemsAtlas.js
  • /home/lsannier/Desktop/web-minecraft/src/server/prebuild.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
    at Function.Module._load (internal/modules/cjs/loader.js:862:27)
    at Module.require (internal/modules/cjs/loader.js:1040:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object. (/home/lsannier/Desktop/web-minecraft/node_modules/canvas/lib/bindings.js:3:18)
    at Module._compile (internal/modules/cjs/loader.js:1151:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1040:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/home/lsannier/Desktop/web-minecraft/node_modules/canvas/lib/bindings.js',
    '/home/lsannier/Desktop/web-minecraft/node_modules/canvas/lib/canvas.js',
    '/home/lsannier/Desktop/web-minecraft/node_modules/canvas/index.js',
    '/home/lsannier/Desktop/web-minecraft/src/server/atlasCreator.js',
    '/home/lsannier/Desktop/web-minecraft/src/server/itemsAtlas.js',
    '/home/lsannier/Desktop/web-minecraft/src/server/prebuild.js'
    ]
    }
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! [email protected] prebuild: node src/server/prebuild
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the [email protected] prebuild script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-01-30T08_46_25_105Z-debug.log

Readme

Remove minecraft server setup sumarry because no npm run server for thΓ© moment
Or we can add again npm run server.

Merge chunks into columns meshes

There are too much meshes on the scene, so meshes must be merged to bigger meshes or one single mesh.
This will improve performance with large render distance.
(WIth columns meshes it will be 16x less render calls)

Change base of array

Array of player connected is based on player connected to webmc. So we can connect only one server simultaneously. Can u fix that @michaljaz ?

Remove chat xss

Remove vulnerability of xss in chat like "<script>alert('some js code')</script>".

Menu like in minecraft

Create menu like in minecraft, with server selecting and showing saved servers list (saved in localStorage or sth like that)

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.