lordmauve / lordmauve/pgzero

Rect does not support floating point coordinates

Open
#12 6 comments 0 reactions 0 assignees View on GitHub
bug minor
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.