Coder Social home page Coder Social logo

leap-motion-css-game's Introduction

LEAP-MOTION-CSS-GAME

This prototype shows the usage of CSS and LEAPJs in creating 3D Games.

Snapshot

Watch Gameplay

In this Game, I'm using

  • Leap motion Device and LeapJs to steer the jet plane.
  • CSS 3D transforms to draw the city with everything in it.
  • Javascript to set the game in motion

The buildings, plane and other 3d objects are HTML DOM elements transformed using CSS3.The day-night rotation is implemented with CSS transitions (Although CSS animations can be used for the same). CSS is not meant for creating serious 3D games as there are Performance issues(even after using GPU) , Browser Support Issues and its limitations in creating 3D graphics.


##About Leap Motion

The Leap Motion system recognizes and tracks hands, fingers and finger-like tools. The device operates in an intimate proximity with high precision and tracking frame rate and reports discrete positions, gestures, and motion.This tracked frame data can be processed using LeapSDK. You can know more about Leap Motion SDK here .


##About CSS3

CSS transforms allow us to change the position of elements without disrupting the normal document flow. Transforms are implemented using a set of CSS properties that let us apply transformations like rotation, skewing, scaling and translation in both the plane and 3D space. CSS transition properties provide a way to control the animation speed in changing the properties over a given duration. We can also specify time intervals, durations and timing functions that follow a customizable acceleration curve.

There are many examples across the web like [EXAMPLES]. and this Game version too can be taken to whole another level by adding more details and interaction or perhaps using WebGL , Canvas.


Useful Links for further reading:

  1. WebGL vs CSS 3D Transforms

  2. [CSS3](http://css3.bradshawenterprises.com/transforms/ | Desandro's Intro : http://desandro.github.io/3dtransforms/)

  3. [Leap Motion](http://leapmotion.com/ | LeapJs: https://developer.leapmotion.com/leapjs/getting-started)

  4. Web Audio API

  5. TRIDIV

  6. HTML5 Canvas

7.Other EXAMPLES

leap-motion-css-game's People

Contributors

vikas-bansal avatar

Stargazers

 avatar  avatar  avatar  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.