<script src="http://spelprogrammering.nu/simple.js"> function start() { hastighet = 0.05; vinkel = 0; x = 0; y = 0; } function update() { clearScreen(); math.point(x, y); if (keyboard.left) { vinkel += 0.1; } if (keyboard.right) { vinkel -= 0.1; } x += cos(vinkel) * hastighet; y += sin(vinkel) * hastighet; } </script>