Giter Site home page Giter Site logo

webstunts's Introduction

WebStunts by Patai Gergely

Seeing all the rage about WebGL and not having written JavaScript for years, I decided to give it a try as a learning exercise. This is a reimplementation of the Stunts demo that accompanies the LambdaCube 3D engine. The contents of models.js were mostly generated by extending the original Haskell code (which loads the files of the DOS game directly) to dump some intermediate data structures.

In the original demo we used Bullet for physics. While there exists a direct Javascript port of Bullet under the name ammo.js, it seems to be too slow for this purpose, and I ran into bugs concerning triangle meshes at the time of this experiment. Instead, I went with JigLibJS2, which is much faster and works as advertised. It is a much simpler engine than Bullet and by far not as robust (its triangle mesh support seems somewhat broken), but it runs much faster at the moment. Besides, it seems to be the only viable option that makes at least rudimentary vehicle simulation possible in JavaScript.

We all loved Stunts for the wacky physics, so there is every reason to love this redux ten times as much. ;) Now go and play the online version!

webstunts's People

Contributors

cobbpg avatar

Stargazers

 avatar

Watchers

 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.