lordmauve / pgzero

A zero-boilerplate games programming framework for Python 3, based on Pygame.
https://pygame-zero.readthedocs.io/
GNU Lesser General Public License v3.0
530 stars 190 forks source link

Add move_forwards(dist) for Actor. Closes #193 #194

Open nbogie opened 5 years ago

nbogie commented 5 years ago

Adds the ability to say myActor.move_forwards(10).

Hi! I hope you don't mind me making a PR without first discussing the feature request. No worries at all if you just close this, but I'd certainly be interested in your thinking on what pygamezero actors should and should not directly provide.

lordmauve commented 5 years ago

This is pretty good.

The problem is that Actors don't have a "forwards" exactly. In the docs we talk about a ship sprite facing right in order to use angle_to() to aim. But that's only a convention. If you have a sprite that faces upwards, you can still rotate it by increasing and decreasing angle.

I would be happy to accept this if you can add docs stating what exactly forwards means.