Skip to content

Say what units sprite velocity and change_angle are in - #2958

Merged
pvcraven merged 1 commit into
developmentfrom
sprite-speed-units-docs
Oct 9, 2026
Merged

pvcraven merged 1 commit into
developmentfrom
sprite-speed-units-docs

Conversation

@pvcraven

@pvcraven pvcraven commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Summary

Docstrings only. The sprite speed units weren't documented: change_x and change_y just said "velocity", and change_angle said "per 1/60th of a second".

  • velocity: pixels per frame at 60 FPS, with an example: (5, 0) moves 300 pixels per second to the right.
  • change_x and change_y: pixels per frame at 60 FPS.
  • change_angle: degrees per frame at 60 FPS.

Nothing else changes: no code, no examples. Related to #2397, which stays open for the physics overhaul (#2580).

🤖 Generated with Claude Code

Sprite speeds are per frame at 60 FPS, which the velocity, change_x,
change_y and change_angle docstrings didn't say (#2397).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pvcraven
pvcraven force-pushed the sprite-speed-units-docs branch from 8de8249 to 9104a3a Compare October 8, 2026 21:23
@pvcraven pvcraven changed the title Document sprite speed units and pass delta_time in examples Say what units sprite velocity and change_angle are in Oct 8, 2026
@pvcraven
pvcraven merged commit 98879bb into development Oct 9, 2026
7 checks passed
@pvcraven
pvcraven deleted the sprite-speed-units-docs branch October 9, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant