INNER CODE UNIT · JavaScript

newBrick

city41/breakouts · breakouts/stagejs/app.js:155

  function newBrick(color) {
    var body = new p2.Body({
      mass : 0
    });
    body.addShape(shape.brick);
    body.isBrick = true;
    body.ui = Stage.anim(color).pin("handle", 0.5);
    body.ui.drop = function() {
      this.repeat(1, function() {
        this.remove();
      }).fps(24);
    };
    return body;
  }

  var miniPaddle;

  function setPaddle(newpaddle) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…