Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/OmarShehata/I-Spy-A-Ghost
An experimental p2p multiplayer game made in HTML5/Phaser using WebRTC in 48 hours for Ludum Dare
https://github.com/OmarShehata/I-Spy-A-Ghost
Last synced: 6 days ago
JSON representation
An experimental p2p multiplayer game made in HTML5/Phaser using WebRTC in 48 hours for Ludum Dare
- Host: GitHub
- URL: https://github.com/OmarShehata/I-Spy-A-Ghost
- Owner: OmarShehata
- License: mit
- Created: 2016-04-02T04:05:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-08T13:18:45.000Z (over 8 years ago)
- Last Synced: 2024-08-02T06:16:51.120Z (3 months ago)
- Language: JavaScript
- Size: 18.1 MB
- Stars: 58
- Watchers: 4
- Forks: 20
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-open-source-games - I Spy A Ghost - An experimental p2p multiplayer game made in HTML5/Phaser using WebRTC. (Browser-Based / Arcade)
README
# I Spy A Ghost
An experimental p2p multiplayer game made in HTML5/Phaser using WebRTC in 48 hours for [Ludum Dare](http://ludumdare.com/compo/ludum-dare-33/?action=preview&uid=11521). Relies on [PeerJS](http://peerjs.com/) 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](http://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](http://omarshehata.me/html/ludum/) 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](https://raw.githubusercontent.com/OmarShehata/I-Spy-A-Ghost/master/Assets/screenshots/multiplayer_intro.png)
![gameplay](https://raw.githubusercontent.com/OmarShehata/I-Spy-A-Ghost/master/Assets/screenshots/gameplay_1.png)
![ghost_win](https://raw.githubusercontent.com/OmarShehata/I-Spy-A-Ghost/master/Assets/screenshots/ghost_win.png)
![gif](https://raw.githubusercontent.com/OmarShehata/I-Spy-A-Ghost/master/Assets/screenshots/gameplay_2.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.