Giter Club home page Giter Club logo

i-spy-a-ghost's Introduction

I Spy A Ghost

An experimental p2p multiplayer game made in HTML5/Phaser using WebRTC in 48 hours for Ludum Dare. Relies on PeerJS for the networking.

This is an asynchronous game. The human player is trying to survive and kill the ghost by shining a light. The ghost player is trying to kill the human by dropping something on him. Neither player can fully see the other on their screen! The game is meant to be played in the same room and peeking over shoulders is encouraged.

How to Run

  • Download this repository
  • Get an API key from peerjs.com and add it in src/Global.js
  • Run a local web server (the easiest way is with Python)

If you just want to see it run without getting an API key, you can set debugStart in src/Global.js to be either 'pc' or 'mobile' to see how those look. (Multiplayer feature won't work then.)

Here's a version hosted on my personal website. (If it doesn't work, I probably accidentally broke my server somehow..)

How to Play (Controls)

Human (Desktop) Player

  • Move with WASD/Arrow keys
  • Press Z or K to attack
  • Your goal is to shine the light on the ghost

Ghost (Mobile) Player

  • Tap anywhere to move
  • Tap on your character to drop an anvil
  • Your goal is to drop something on the player

Screenshots

intro_screen

gameplay

ghost_win

gif

Credits

Programming & Design by Omar Shehata (author of this repo)

Art by Tak (@Takorri)

Music by a fantastic person on Newgrounds whose name/account I unfourtunately have lost.

i-spy-a-ghost's People

Contributors

omarshehata avatar

Watchers

 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.