Giter Site home page Giter Site logo

colonist's Introduction

Colonist

Basic architecture idea

I'm trying to make the server work totally based on cyclejs and observables... wish me luck

On "normal" minecraft server, the processes go kind of like this:

  1. Client does something
  2. The code listening to packets from that client sends out update packets to the other clients

The important part here is "The code listening to packets from that client". That code, listening to packet from one client, sends packets to all the other clients. In my head, that feels odd. Coming from two years of non-stop react, I want the things that affect the object I'm working with, close to that object... if that makes sense.

So the idea for this server is

  1. Client does something
  2. The code listening to packet from that client updates state accessible by other code
  3. The codes handling other clients pick up the changes and sends out packets to their clients

Moving parts

  • "Server" The actual thing clients connect to, but it does not necessarily imply some connection between the clients connected to it (they could be in different "Spaces" and "Worlds")

  • "Client" Connection to the server, most of the time also has a minecraft player bound to it

  • "Space" Collection of clients that can chat with each other, see each other join and leave, and share a tab list.

  • "World" Place where players and entities can be placed in, where they will visible to other players. I think this also includes the actual chunks but I am not yet 100% sure of 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.