Coder Social home page Coder Social logo

joielechong / sourceundead Goto Github PK

View Code? Open in Web Editor NEW

This project forked from benjamingr/sourceundeadv2

0.0 1.0 0.0 1.18 MB

Multi-player zombie vs. human battle royale! 10 humans standoff against a single zombie. Will the zombie infect all the humans, or will the humans band together and prevail against the outbreak?

Home Page: http://sourceundead.com

JavaScript 67.48% CSS 6.64% HTML 25.88%

sourceundead's Introduction

SourceUndead

Multi-player [in progress] zombie game built with MySQL, Express, and NodeJS (The MEN stack).

I left out my settings.js file because it has private credentials in it. But here is the schema I used (a simple JS Object) to have my settings all in one file:

"use strict";
export default {
    user : "dat username",
    database : "not my database",
    password : "asswordp"
}

Setting up your own server is easy! The following steps should help you create and setup your server.

  1. Install an Ubtuntu 14.04 instance
  2. Create your non-root user and give sudo permissions
  3. Install a mysql server by running sudo apt-get install mysql-server
  4. Install npm by running sudo apt-get install npm
  5. Run npm install to install the project dependencies
  6. Login to mysql using the credentials you created
  7. Run database.sql to create the database and tables
  8. Set up Redis server on your machine! Make sure Redis is running redis-server on a dedicated terminal (or have it run in the background)
  9. Run babel-node server to compile the code and start the server*

*Note: Eventually I will export a distribution model that does not require babel. If you do this on your own, use node server.js --harmony to start the server. Make sure you install babel-cli globally!

Game Status: [Under Development]

You can currently create an account, login, and navigate the routing. I am currently setting up the map system, and progress is going well.

You can now move around with other players in real time, see them on the same coordinates as you, and the backend tracks angle bearing within your sense radius!

Players now have a sense of hearing (but apparently shitty eyesight!). Your HUD now displays bearing flashers when players move in your vicinity.

You can now create a game lobby, join a lobby, and sit in the waiting room in real time. Needs tweaks though, and special checks.

Special Thanks

@rlemon -- Helping design, teach, and create the express node routing system. Also screamed BABEL at me several times.

@ssube -- Designed the algorithm to determine player bearing within radius of sense, along with teaching me redis, and why I should use it.

@ralt -- For yelling at my shit code so that I wrote good code. U da real MVP.

sourceundead's People

Contributors

rujodan avatar rlemon avatar

Watchers

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