Giter Site home page Giter Site logo

professorpetezah2 / arrasian-io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from theexecutionist/arrasian-io

0.0 0.0 0.0 84 KB

The official Arrasian.io Client. Ran with glitch and Netlify

License: GNU General Public License v3.0

JavaScript 79.87% CSS 4.36% HTML 15.77%

arrasian-io's Introduction

Arras Mayhem

The offical client for the arras-mayhem server. Purple Arras.io logo

Features

  • Sound effects!
  • Music!
  • Lightweight, separate client!
  • More colours!
  • Server Selector!
  • Fixed hotkeys! (Be sure your server project has them binded)
  • Deployment to Repl.it or Heroku! Still works with Glitch!
  • Webserver compatibility with 6 different languages!

Webservers

The client is able to be hosted as either a Node.js Express, PHP, Go HTTP, Ruby Webrick, C or Python Flask webserver. Details below! Examples are linked as well.

Additonal code is available on my Github project's page, https://github.com/seaguli/arras-mayhem

Remixing

Feel free to remix this project and modify it to your own liking!

ask me if you want any aspect of the server's code at (SF) Seagull#2224

Setting it up

Thanks to [MG] Octo#9071 for the server selector and guide!

How to add your server(s)

  • Go to line 3339 in bundle.js
  • You'll see there are multiple things that look like this:
          {
            visible: 0,
            id: "1",
            type: "game",
            code: "glitch-worldwide-f",
            at: p.glitch('your-server'),
            prefer: !0,
           // featured: 1, // For Featured Status.
          },
  • Now, lets break it down. The first thing you'll see is visable 0,. Don't worry, it is.
  • The next thing is id. This is what will appear in the web address. I like to have them start at 1 and numarically have them go up
  • The thing after that is "type". This is used for indentifying the gamemode but it doesnt really matter what you put in cuase it wont effect the game, only the server does that
  • Under that, is code: "glitch-worldwide-f",. This effects how it'll show in the server selector. Lets break this down too.
  • First of all, it sais "glitch". This is the server provider your using. Say if your using Heroku instead, you would put Heroku
  • After that it sais "worldwide". This is the region. Just keep it at worldwide unless your really gonna set up servers in different locations
  • at the end, it sais "f". This is the gamemode that displays in the server selector. Here is a list of gamemodes you can choose from
  • (note; This is just what it displays, if you want it to actally be say domination, you gotta do that in your server code.)
p=private
e=word
w=words
o=open
m=maze
f=ffa
2=2TDM
3=3TDM
4=TDM
d=domination
m=mothership
a=assault
  • Next we got at: p.glitch('your-server'),. This is where you'll put in to connect to your server.
  • The p.glitch is what server hoster its gonna attempt to connect to. If we want heroku, we would put in p.heroku instead of p.glitch.
  • Afterwards, theres prefer: !0,. I wouldnt mess with it but it makes you automaiticly connect to that server by default
  • Horray! You are now done doing the informational reading. Lets put this knowledge into use.
  • What were gonna try to do;
  • Have a server that connects to my glitch server that is 2TDM.
  • The first thing were gonna do is find the server selector code in bundle.js on line 3339.
  • Next, where gonna look at the code and figure out what to do.
          {
            visible: 0,
            id: "1",
            type: "game",
            code: "glitch-worldwide-f",
            at: p.glitch('your-server'),
            prefer: !0,
           // featured: 1, // For Featured Status.
          },
  • Now that you are there, lets edit some things.
  • We want to connect to our glitch project, "swift-checkered-wildebeest".
  • What where gonna do is replace the "your-server" with "swift-checkered-wildebeest".
  • After that, were gonna change code: "glitch-worldwide-f", to code: "glitch-worldwide-2".
  • What i did is this: Keep it as glitch cause thats what where using; Keep at as worldwide cause why not; replace the "f" with "2" becuase we want 2TDM. Remember, a list of all the gamemodes is listed above.
  • And there we go, we should know have a working, custom client with a server selector! Horray!

Domains

The client can be found at the following links:

Credits

arrasian-io's People

Contributors

theexecutionist 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.