Giter VIP home page Giter VIP logo

leapmotion-space-invaders's Introduction

leapmotion-space-invaders

This repository contains a basic template for our prototype leapmotion games. We use the Phaser game framework, and the Leap-Motion API.

View:

The game is running live here

Develop:

clone the repo

git clone https://github.com/adelciotto/leapmotion-space-invaders.git
your-prototype-name/
cd your-prototype-name

setup the project

run the install script:

./scripts/install.sh <your-github-username> <your-prototype-name>

Note: Please omit the brackets.

api reference

Please familiarise yourself with both the Phaser API and the Leap-Motion API.

npm tasks:

  • npm run dev - Builds and scripts and assets in development mode, then hosts the game at localhost:8000. All source files and assets are watched and a browser reload will be triggered on any changes.
  • npm run prod - Builds and scripts and assets in production mode, then hosts the game at localhost:8000.
  • npm run build - Builds the scripts and assets in production mode. This means all source files are minified and all assets are optimised.

JS Conventions

We use Javascript ES6 in this project; which is compiled down to ES5 for browser compatibility using Babel. For a complete ES6 reference; go here

Stick to the JS coding conventions outlined here by airbnb

Deploying the game

push to gh-pages branch

To update the deployed game; please run the gh pages deploy script in the root directory:

./scripts/deploy

Note: only deploy when you feel you have something remotely playable

leapmotion-space-invaders's People

Watchers

Wellington Silva da Mota 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.