Code Monkey home page Code Monkey logo

voxelzombiewebgl's Introduction

po# Voxel Zombies WebGL

This is a mutliplayer Unity game that runs in the browser. It features multiplayer networking using webRTC data channels.

It is available to play at https://crashblox.net.

How to run

Instructions for setting up the various servers that make up Crashblox.

NGINX Reverse Proxy

All HTTPS communication for Crashblox is routed through an NGINX reverse proxy. This allows us to use a single wildcard SSL certificate with each internal server represented as a subdomain.

To run the reverse proxy, Install NGINX on Ubuntu and replace the default configuration with reverse-proxy.conf.

reverse-proxy.conf

Crashblox Node.js Server

The Node.js server handles serving static files such as HTML pages, map files, and the Crashblox client itself as a Unity WebGL build.

It can be started up by navigating to the crashblox directory and running "node crashbloxServer.js" in a CMD window.

crashbloxServer.js

Identity Server

The Identity Server is python FastAPI server that manages a SQLite database of user information. It integrates with Google OAuth for account authenication.

To run the Identity server navigate to the identity directory.

Install Poetry through pip, create and activate virtual environment, then run main.py in virtual environment.

foo@bar:~/identity$ pip install poetry
foo@bar:~/identity$ poetry install
foo@bar:~/identity$ poetry shell
(.venv) foo@bar:~/identity$ python main.py

Unity Game Server

The Crashblox Game server is responsible for establishing webRTC connections with the browser based game clients. The server receives inputs from the clients, simulates the player movements, and sends resulting states back to the clients.

To run the game server navigate to ServerBuild/Windows and run the .exe of the Unity application.

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.