1. Daniel Pope
  2. pgzero
  3. Pull requests

Pull requests

#11 Merged
Repository
pgzero-issue12
Branch
default
Repository
pgzero
Branch
default

Rect in Python allowing for floating-point coordinates

Author
  1. Tim Golden
Reviewers
Description

Well I didn't think it was going to go this far, but I couldn't see any other way to have a consistent floating-point pgzero Rect object which could interoperate with pygame.Rect.

I've basically re-implemented Rect in Python, and all the pygame Rect tests pass plus a few more. You obviously lose the speed advantage of the int-only C extension, but for simple pgzero games that's perhaps not such an issue. Haven't done any timings.

Comments (0)