nighthawkcoders / teacher_portfolio

GitHub Pages / Jupyter Notebook guides for Python, Java, JavaScript, Linux
https://nighthawkcoders.github.io/teacher_portfolio/
Apache License 2.0
1 stars 50 forks source link

CSSE Multiplayer Implemenation #46

Open rjawesome opened 6 months ago

rjawesome commented 6 months ago

Node.js Server

Creating a socket.io client

Obtaining and using the ID for this client

Using the ID to determine the appropriate ID for the player object

Exporting information about Objects to Server

Being able to add a character to the level in realtime

Changing a gameObject based on JSON info

Ingesting player Updates from the Server

Deleting players when someone leaves

rjawesome commented 6 months ago

Deployment Information

this magic is needed for WebSocket

    proxy_http_version  1.1;
    proxy_set_header    Upgrade $http_upgrade;
    proxy_set_header    Connection $connection_upgrade;
    proxy_set_header    Host $http_host;
    proxy_set_header    X-Real-IP $remote_addr;
}

}