import sfml as sf
rect1 = sf.Rectangle((0, 0), (50, 50))
rect2 = sf.Rectangle((250, 250), (50, 50))
print(rect1.intersects(rect2))
---------ERROR--------
Traceback (most recent call last):
File "D:\code\python\sfml\tuto\test.py", line 6, in <module>
print(rect1.intersects(rect2))
File "graphics.pyx", line 188, in sfml.graphics.Rectangle.intersects (src/sfml\graphics.cpp:4442)
File "graphics.pyx", line 97, in sfml.graphics.Rectangle.__init__ (src/sfml\graphics.cpp:2420)
TypeError: __init__() takes at most 2 positional arguments (4 given)
[Finished in 0.2s]