<script src="http://spelprogrammering.nu/simple.js">
function start()
{
  ball = {s: 0,
          v: 1.4};

  world = {t: 0};
}

function update()
{
  ball.s = ball.v * world.t;
  clearScreen();
  circle(ball.s, 100, 50, "red");
  world.t++;
}
</script>
        
Gå tillbaka