Code Monkey home page Code Monkey logo

matterjs's Introduction

http://students.washington.edu/changshu/info343/challenges/matterjs/

#The Matterjs Challenge ##1.What library?
This example demonstrates the capability of matterjs, a 2D physics engine for the web,

##2.Why Matterjs? When developing web games, web programmers may need to simulate the real world physics environment(or change it). Instead of hard coding physical principles into their codes, using library is a wiser choice. And matterjs is such a powerful library. Compared with another physical engine, physics.js. Matter.js is easier to use.

##3.Limitation The limitation of matterjs is that it's still under development. It is sometimes unstable in the game and bugs can happen. Also, I personally found it unable to draw more detailed figures. For example, making a human figure is hard in matter.js. Right now, it only has rectangle, circle, polygon and trapezoid.

##4.My example I designed a little game by using matterjs's gravity, expulsion, bullet time, mouse drag and figure drawing functoins. User moves the box on the left building to the string on the right building. Every time the user wins, he/she will go to next level, where there will be more circles moving around. The best level record the user has will be shown on the screen, with the current level.

##5.How to run To run my example locally, users should download matterjs and link it in the html. The online website is http://students.washington.edu/changshu/info343/challenges/matterjs/.

##Learn more

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.