dugo3number2 / elemental4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elemental 4 is a fan made recreation of Elemental 3, built on modern web technologies, and with many client customization features.

Play Live Build

elemental4.net
dev.elemental4.net (development branch)

Development

The game is separated onto two parts: server (server folder) and client (game folder). They are almost two separate projects, but the server is required to be running for the game to work.

The build system was changed last minute, separating the client and server, so it's a crazy mess. I also didn't keep an old copy of this repository, so the first commit is a lot. I also didn't commit useful names. I just want this project out. As of the release, Everything is sloppy. Good luck figuring out anything.

Run the your own server

  • Get node.js & npm
  • npm install -D
  • npm run build-server
  • node gen-env
  • Edit .env with your stuff
  • Run node . to start the server

Develop Server Side

  • Folders: shared, server
  • setup a build of the server
  • npm run watch-server
  • you still have to restart it every time of course
  • As of the client/server separation, the local dev server wont appear in the dropdown by default. You have to add it manually.

Develop Client Side:

  • Folders: everything but ./server
  • ./client.sh: Starts a server on localhost:8000
  • node build-client: builds the client at dist_client, for publishing.

The live server uses voting equations similar to but i change it every so often.

VOTE_THRESHOLD_EQUATION=(5-0.1*voters)+(100^(-hours+1.5)+1.03^(-hours+48))
VOTE_SCORES_EQUATION=-2^(-hours*1.8)+1

SVG stuff designed in figma, see project here

About

License:GNU General Public License v3.0


Languages

Language:TypeScript 60.1%Language:HTML 27.9%Language:CSS 8.4%Language:JavaScript 2.9%Language:Go 0.6%Language:Shell 0.1%