Skip to content

OmarShehata/I-Spy-A-Ghost

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
src
 
 
 
 
 
 
 
 

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.

About

An experimental p2p multiplayer game made in HTML5/Phaser using WebRTC in 48 hours for Ludum Dare

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages