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

Skip to content

Commit 2e043ea

Browse files
committed
Pygame
1 parent 4d53f8e commit 2e043ea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2940,8 +2940,8 @@ while all(event.type != pg.QUIT for event in pg.event.get()):
29402940
```
29412941

29422942
```python
2943-
<bool> = <Rect>.collidepoint((x, y)) # Tests if point is inside the rectangle.
2944-
<bool> = <Rect>.colliderect(<Rect>) # Tests if the two rectangles overlap.
2943+
<bool> = <Rect>.collidepoint((x, y)) # Checks if rectangle contains a point.
2944+
<bool> = <Rect>.colliderect(<Rect>) # Checks if two rectangles overlap.
29452945
<int> = <Rect>.collidelist(<list_of_Rect>) # Returns index of first colliding Rect or -1.
29462946
<list> = <Rect>.collidelistall(<list_of_Rect>) # Returns indexes of all colliding Rects.
29472947
```

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2516,8 +2516,8 @@
25162516
</code></pre></div>
25172517

25182518

2519-
<pre><code class="python language-python hljs">&lt;bool&gt; = &lt;Rect&gt;.collidepoint((x, y)) <span class="hljs-comment"># Tests if point is inside the rectangle.</span>
2520-
&lt;bool&gt; = &lt;Rect&gt;.colliderect(&lt;Rect&gt;) <span class="hljs-comment"># Tests if the two rectangles overlap.</span>
2519+
<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>
2520+
&lt;bool&gt; = &lt;Rect&gt;.colliderect(&lt;Rect&gt;) <span class="hljs-comment"># Checks if two rectangles overlap.</span>
25212521
&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>
25222522
&lt;list&gt; = &lt;Rect&gt;.collidelistall(&lt;list_of_Rect&gt;) <span class="hljs-comment"># Returns indexes of all colliding Rects.</span>
25232523
</code></pre>

0 commit comments

Comments
 (0)