Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gjbianco/card-pack-phaser
Bootstrap files for making card games in Phaser
https://github.com/gjbianco/card-pack-phaser
Last synced: about 1 month ago
JSON representation
Bootstrap files for making card games in Phaser
- Host: GitHub
- URL: https://github.com/gjbianco/card-pack-phaser
- Owner: gjbianco
- License: mit
- Created: 2016-02-07T18:46:36.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-07T18:51:36.000Z (almost 9 years ago)
- Last Synced: 2024-12-09T12:57:35.131Z (about 1 month ago)
- Language: JavaScript
- Size: 182 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# card-pack-phaser
> Bootstrap files for making card games in [Phaser](http://phaser.io).
## Requirements
You can either just take the game source (`www/game.js`) or use the built in server to host the file. If you just want the game source, you can skip the installation steps and you will not need anything else.
- npm
- grunt
- bower## Running the Server
Install necessary dependencies for running server using NPM (runs Bower):
```shell
npm install
```Copy Bower files to necessary location via Grunt:
```shell
grunt
```Start the server with:
```shell
npm start
```Now just go to the root of port 8080 on your machine ([http://localhost:8080](http://localhost:8080/))
## Controls
Drag the cards around the screen. To flip a card, start dragging it and press the `f` key.
Works on mobile, but there is currently no way to flip a card unless you have a keyboard (untested).