Code Monkey home page Code Monkey logo

minecraft's Introduction

Minecraft recode in Java

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.
It is a fork of the first version of Minecraft.

This project was ported to javascript here: js-minecraft.

Feature Overview

  • Block rendering
  • Block collision
  • Player movement
    • Walking
    • Sprinting
    • Sneaking
    • Flying
    • Swimming
  • Dynamic lightning
  • Smooth lightning
  • Anvil world loading/saving
  • Perlin world generation
  • Frustum Culling
  • Fog
  • Underwater fog
  • HUD rendering
    • Cross-hair
    • Font rendering
  • Dynamic FOV

Ingame

Setup

  • Clone the project
  • Set your working directory to ./run
  • Run main class de.labystudio.game.Minecraft
  • Wait a few seconds for the world generation

Controls

W: Forward
S: Backwards
A: Left
D: Right

Left click: Destroy block
Right click: Place block
Middle click: Pick block

Space: Jump
Double Space: Toggle flying
Q: Sneaking
Shift: Sprinting
ESC: Toggle game focus

R: Return to spawn

Smooth lightning example

Smooth Lightning

Known issues

  • Mouse over block calculation is acting weird and doesn't work sometimes
  • No light updates during world generation

Planned

  • Generate new chunk if not generated yet (Infinite map)
  • Multiplayer
  • Entity rendering
  • Loading screen

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

minecraft's People

Contributors

labystudio avatar

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.