Rect does not support floating point coordinates
- Dominant language
- Python
- Stars
- 611
- Forks
- 211
- PR merge metrics
- No merged PRs in 30d
Description
Originally reported by: **Daniel Pope (Bitbucket: [lordmauve](https://bitbucket.org/lordmauve), GitHub: [lordmauve](https://github.com/lordmauve))**
----------------------------------------
This is confusing:
>>> from pygame import Rect
>>> Rect(1.5, 2.6, 7, 0.1)
It is inconsistent with Python's own number types, because Python tries to minimise the distinction between integral and float types.
----------------------------------------
- Bitbucket: https://bitbucket.org/lordmauve/pgzero/issue/12
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the documented Rect(1.5, 2.6, 7, 0.1) example and inspect the project’s Rect usage and related tests; the payload names no source file or test entry point. Done means the behavior for floating-point coordinates is consistent with the requested Python number handling and is covered by a regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100