GithubHelp home page GithubHelp logo

labystudio / js-minecraft Goto Github PK

View Code? Open in Web Editor NEW
62.0 5.0 27.0 4.83 MB

A browser sandbox that provides all basic features to understand the render and physics engine of Minecraft.

License: Other

HTML 0.05% JavaScript 99.91% CSS 0.04%
game minecraft 3d-game voxel-game minecraft-recreation javascript threejs browser browser-game js

js-minecraft's Introduction

Minecraft recode in JavaScript

This is a sandbox that provides all basic features of Minecraft.
The main purpose of this project is to understand the render and physics engine of Minecraft.
The source code was ported from the java-minecraft project.

Ingame
Click here for a demo!

Feature Overview

Click here to expand feature list
  • Block rendering
    • Biome color
  • Block collision
  • Player movement
    • Walking
    • Sprinting
    • Sneaking
    • Flying
    • Swimming
  • Lightning
    • Dynamic lightning
    • Smooth lightning (Ambient occlusion)
    • Day/Night/Sunset
    • Sky color rendering
    • Block light source
  • Entity Rendering
    • Item in hand
    • Arm swing animation
    • Walking animation
    • Crouch animation
    • Block break particles
  • World
    • 16x16x16 Chunks
    • Block type, data, sky & block lightning
    • Entities
    • Minecraft Alpha Generator
      • 64 bits seed
      • Perlin terrain generation
      • Perlin cave generation
      • Perlin tree and big tree generation
  • Camera
    • Frustum Culling
    • Fog
    • Underwater fog
    • Dynamic FOV
    • Third person
    • First person hand
    • First person item in hand
  • GUI
    • Screens
      • Main Menu
      • Create World Screen
      • Loading Screen
      • InGame Menu
      • Options Screen
      • Controls Screen
      • Chat Input Screen
      • Creative Inventory Screen
      • Direct Connect Screen
      • Connecting Screen
      • Disconnected Screen
    • Widgets
      • Button
      • KeyBinding
      • Slider
      • Switches
      • TextField
    • Overlay
      • Cross-hair
      • Font rendering
      • Hot-Bar
      • Chat
      • Debug
      • Player list
  • Multiplayer
    • Networking
      • RSA Encryption
      • AES Encryption
      • Compression
      • Splitting
      • NBT Serialization
      • Sub-Protocols
        • Handshake
        • Status
        • Login
        • Play
    • Packets
      • Chunk Packets
      • Movement Packets
      • Block Update Packets
      • Chat Packets
      • Player Packets
  • Commands
    • /help
    • /time
    • /tp

Screenshots

Note: All textures from the original game were used for the screenshots only!

Main Menu Create World Lightning Night Controls

Licensing


NOT OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG.

js-minecraft's People

Contributors

labystudio 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

Watchers

 avatar  avatar  avatar  avatar  avatar

js-minecraft's Issues

Refactoring this app

Hi, I like this project a lot. The main issue with why the app is so laggy is that you literally added whole libraries to this app. I think the better approach would be to use npm to install all these libraries and then use a module bundler like webpack or rollup.

I can help you with that if you're interested :D

Super laggy

Dunno if its just me but its super laggy and kind of unplayable

Multiplayer

@LabyStudio how do i setup a server?
I would love to carry on this project but this is a major block

License is missing

Hi, nice work!
Does this project is open source?
If so, can you provide License?
I'd like to refactoring this project in Typescript and other modern setup of javascript .

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.