Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ead6c5

Browse files
committed
Pygame
1 parent 31e88f3 commit 3ead6c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2989,7 +2989,7 @@ while all(event.type != pg.QUIT for event in pg.event.get()):
29892989
```
29902990

29912991
```python
2992-
<bool> = <Rect>.collidepoint((x, y)) # Checks if rectangle contains a point.
2992+
<bool> = <Rect>.collidepoint((x, y)) # Checks if rectangle contains the point.
29932993
<bool> = <Rect>.colliderect(<Rect>) # Checks if two rectangles overlap.
29942994
<int> = <Rect>.collidelist(<list_of_Rect>) # Returns index of first colliding Rect or -1.
29952995
<list> = <Rect>.collidelistall(<list_of_Rect>) # Returns indexes of all colliding rectangles.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2437,7 +2437,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
24372437
</code></pre></div>
24382438

24392439

2440-
<pre><code class="python language-python hljs">&lt;bool&gt; = &lt;Rect&gt;.collidepoint((x, y)) <span class="hljs-comment"># Checks if rectangle contains a point.</span>
2440+
<pre><code class="python language-python hljs">&lt;bool&gt; = &lt;Rect&gt;.collidepoint((x, y)) <span class="hljs-comment"># Checks if rectangle contains the point.</span>
24412441
&lt;bool&gt; = &lt;Rect&gt;.colliderect(&lt;Rect&gt;) <span class="hljs-comment"># Checks if two rectangles overlap.</span>
24422442
&lt;int&gt; = &lt;Rect&gt;.collidelist(&lt;list_of_Rect&gt;) <span class="hljs-comment"># Returns index of first colliding Rect or -1.</span>
24432443
&lt;list&gt; = &lt;Rect&gt;.collidelistall(&lt;list_of_Rect&gt;) <span class="hljs-comment"># Returns indexes of all colliding rectangles.</span>

0 commit comments

Comments
 (0)