Skip to content

Instantly share code, notes, and snippets.

View spheppner's full-sized avatar
🎯
Focusing

Simon Heppner spheppner

🎯
Focusing
  • Austria
  • 09:35 (UTC +02:00)
View GitHub Profile
@horstjens
horstjens / turtlecannon1.py
Last active July 11, 2016 09:01
turtle cannonball
import math
import turtle as t
p1 = t.Turtle()
p1.left(70)
p1.speed=9
p1.dx = math.cos(p1.heading()*math.pi/180)*p1.speed
p1.dy = math.sin(p1.heading()*math.pi/180)*p1.speed
for step in range(100):
x = p1.xcor()
y = p1.ycor()