Skip to content

A interactive game which uses both your phone and your computer. The game uses accelerator data to rotate a "swing" with a ball on it. PHP was a requirement for this task, so it was only used to send and receive accelerometer data

Notifications You must be signed in to change notification settings

gabrielstellini/the-slide

Repository files navigation

TheSlide

Welcome to my project! This is an angular 2 rc4 web game where the user needs to balance an object on a see-saw using the phone's accelerometer. The phone sends POST requests to a php hosted website. The angular project then uses GET requests to get the accelerometer data from the aforementioned website

Installation

  1. Download the repo

  2. Install the node modules npm install npm start

  3. Install PHP and add the files to the htdocs

  4. Deploy the website and follow instructions on the instructions page

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

About

A interactive game which uses both your phone and your computer. The game uses accelerator data to rotate a "swing" with a ball on it. PHP was a requirement for this task, so it was only used to send and receive accelerometer data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published