first-animation.js 140 B

123456789
  1. var stage = new mtm.Stage('c'),
  2. ball = new Ball(20, stage.height/2);
  3. stage.shapes.push(ball);
  4. stage.play(function() {
  5. ball.x++;
  6. });