Giter Site home page Giter Site logo

kz26 / uchicago-hvz Goto Github PK

View Code? Open in Web Editor NEW
20.0 7.0 5.0 3.04 MB

Official repository for the University of Chicago Humans vs Zombies website and game engine

Home Page: https://www.uchicagohvz.org

License: MIT License

Python 19.07% CoffeeScript 0.34% CSS 0.35% HTML 80.24% JavaScript 0.01%
hvz zombies django python python2 larp bootstrap3

uchicago-hvz's Introduction

University of Chicago Humans versus Zombies

Description

This is the official repository for the University of Chicago Humans versus Zombies website and game engine. While this web application has been developed with features specific to our campus and game in mind, you will likely find our implementation useful should you wish to run your own HvZ game. The reference implementation showcasing all the features below is live at https://www.uchicagohvz.org.

This codebase is made available under the terms of the MIT license.

Gameplay Features

  • Real-time game analytics, statistics, individual and squad leaderboards
  • Kill logs, geotagging and kill map, powered by Google Maps
  • Individual profile pages for players, squads, kills, and missions
  • User-definable "Last Words" to be shown to the killer
  • Award and Mission system to assign additional points to players and track mission participation
  • High-value Target and High-value Dorm system, that awards additional points for killing a specific player or players from a specific dorm within a specified timeframe

Player Communication Features

  • Kill submission and award/mission code redemption via web form or inbound SMS (powered by Nexmo)
  • SMS death notifications via free email-to-SMS gateways
  • Separate radio-like chat rooms for humans and zombies (no history and no usernames shown, only timestamps)
  • Mailgun webhooks for running all-player chatter, humans-only, and zombies-only mailing lists (see game/mailing_list.py and users/mailing_list.py)

Administrative and Technical Features

  • Full Bootstrap 3 frontend
  • Create and run multiple games, simultaneously if desired
  • Player registration flow with squad and dorm selection
  • Automatic code generation for players and awards/missions
  • Track gun rentals and returns
  • Full-featured admin panel

Requirements

  • Linux/Unix-based system
  • Django 1.8.x + Python 2.7.x (not tested with Python 3.x) + virtualenv (highly recommended)
  • PostgreSQL 9.3+
  • Celery 3.1.x + supported task queue (Redis recommended)
  • Node.js 0.10.x+ + CoffeeScript for the chat server
  • See requirements.txt, package.json files for more requirements

Customization

Familiarity with Python and the Django web framework is highly recommended.

  1. For starters, you'll need to edit templates, API keys, Django settings, views, etc. to reflect your organizations' branding and environment. For example, the hosts header in the auth method in chat/server/server.coffee will also need to be updated to reflect your site's domain name. Also make sure to substitute your own Google API key in templates/includes/google-maps.html.
  2. Create a new user named uchicagohvz.
  3. Create a virtualenv and install dependencies from requirements.txt.
  4. Create an environment file that will contain things like secret keys, credentials, etc. Check local_settings.py and production_settings.py to get an idea of what this file needs to contain. The environment file can be used with systemd, as demonstrated with the provided sample systemd configs.
  5. Implement a Django authentication backend specific to your organization/deployment. The reference implementation here contains a backend that talks to UChicago's LDAP server and allows us to directly retrieve player names, usernames, and major, in addition to authenticating user credentials during login. Ideally, your authentication backend will be able to do all of these tasks; otherwise, you will need to fall back to a traditional email registration/activation setup (we have also implemented a basic registration flow to allow players without university credentials to register.)
  6. The users module contains UChicago-specific Sympa mailing list management hooks in models.py; you will want to modify this or remove it altogether.
  7. Don't forget to set up a Nexmo SMS account if you wish to enable kill/code redemption via inbound SMS.

uchicago-hvz's People

Contributors

kz26 avatar nick-howlett avatar yatlas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

uchicago-hvz's Issues

Non-ASCII last words cause UnicodeEncodeError in flash message

File "/home/ceidsmoe/uchicago-hvz/app/uchicagohvz/game/views.py", line 168, in form_valid
    messages.error(self.request, escape("{0}'s last words: {1}".format(victim.user.get_full_name(), victim.last_words)))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)

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.