<script src="http://spelprogrammering.nu/simple.js"> function start() { s = 0; s0 = totalHeight / 2; g = -9.8; v0 = 0; t = 0; } function update() { t += 0.2; s = v0*t + (g*t*t) / 2; y = totalHeight - (s + s0); clearScreen(); circle(200, y, 50, "red"); } </script>