[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] a bit #ot: design for a game board supporting user facing different directions?



theta = #angle the character is at (in radians)
speed = #1 meter per second
x_new = x_old + speed*cos(theta)
y_new = y_old + speed*sin(theta)
Ian