Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions arcade/sprite/sprite.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def __init__(
# Movement
self._velocity = 0.0, 0.0
self.change_angle: float = 0.0
"""Change in angle per 1/60th of a second."""
"""Change in angle, in degrees per frame at 60 FPS."""

# Custom sprite properties
self._properties: dict[str, Any] | None = None
Expand Down Expand Up @@ -188,7 +188,8 @@ def radians(self, new_value: float) -> None:
@property
def velocity(self) -> Point2:
"""
Get or set the velocity of the sprite.
Get or set the velocity of the sprite, in pixels per frame at 60 FPS.
For example, ``(5, 0)`` moves 300 pixels per second to the right.

The x and y velocity can also be set separately using the
``sprite.change_x`` and ``sprite.change_y`` properties.
Expand All @@ -205,7 +206,7 @@ def velocity(self, new_value: Point2) -> None:

@property
def change_x(self) -> float:
"""Get or set the velocity in the x plane of the sprite."""
"""Get or set the x velocity, in pixels per frame at 60 FPS."""
return self.velocity[0]

@change_x.setter
Expand All @@ -214,7 +215,7 @@ def change_x(self, new_value: float) -> None:

@property
def change_y(self) -> float:
"""Get or set the velocity in the y plane of the sprite."""
"""Get or set the y velocity, in pixels per frame at 60 FPS."""
return self.velocity[1]

@change_y.setter
Expand Down
Loading