Giter Site home page Giter Site logo

adelciotto / leapmotion-prototype-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 3.3 MB

A template for all the leapmotion game prototypes for COSC2408

Home Page: http://adelciotto.github.io/leapmotion-prototype-template/

JavaScript 99.48% HTML 0.43% Shell 0.10%

leapmotion-prototype-template's Introduction

leapmotion-prototype-template

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

View:

The template is running live here

Setting up the template

create a github repo for your prototype

On github, create a new repository and make sure to leave Initialize this repository with a README unchecked. Furthermore, leave Add .gitignore and Add a license to None

Note: When naming the repo, stick to the convention: your-prototype-name.

clone the repo

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

setup the template

run the install script:

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

Note: Please omit the brackets.

Developing a prototype

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-prototype-template's People

Watchers

James Cloos avatar Timothy Wong 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.