Giter VIP home page Giter VIP logo

rc-bowling's Introduction

Remote-Controlled bowling

https://orzechowskikamil.github.io/rc-bowling/

Actually, this project is abadoned, because you cannot calculate position in time from noisy acceleration values, error is horrible.

And without "throwing ball by throwing mobile phone" this game would be identical to rest of games of this type.

Goal was to learn WebGL and something about physics in games. I wanted to create a bowling game in browser, which will be not only controlled by mouse, but also by paired mobile device movement. It selling point would be very natural process of throwing bowling ball into track, by just holding phone in hand and making a movement.

So graphics in the game and scenes are as basic as possible. Physics engine comes from babylon.js library. Knocked pins are calculated as those which Y coord is under the floor.

Connection between mobile device & pc is established by using peer.js lib - mobile gather accelerometer data, and game in PC browser use this data to calculate actual speed of movement, and try to calculate actual position.

As it was said, calculating integral of integral (?position) of value which noise is up to 50% (accelerometer data), gives horrible, terrible error. So I gave up.

rc-bowling's People

Contributors

orzechowskikamil avatar

Watchers

James Cloos avatar  avatar

rc-bowling's Issues

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.