diff --git a/README.md b/README.md index 23a6d61..a3d29a2 100644 --- a/README.md +++ b/README.md @@ -660,7 +660,7 @@ import zoneinfo, dateutil.tz = - # Ignores jumps if they share tzinfo object. = ± # Returned datetime can fall into missing hour. = * # Also: = abs() and = ±% . - = / # E.g. how many hours are in timedelta. Also //. + = / # E.g. how many hours are in TD. Also //, divmod(). ``` @@ -3016,7 +3016,7 @@ while not pg.event.get(pg.QUIT): = .collidepoint((x, y)) # Checks if rectangle contains the point. = .colliderect() # Checks if the two rectangles overlap. = .collidelist() # Returns index of first colliding Rect or -1. - = .collidelistall() # Returns indexes of all colliding rectangles. + = .collidelistall() # Returns indices of all colliding rectangles. ``` ### Surface @@ -3128,7 +3128,7 @@ def draw(screen, images, mario, tiles): mario.facing_left = mario.spd.x < 0 if mario.spd.x else mario.facing_left is_airborne = D.s not in get_boundaries(mario.rect, tiles) image_index = 4 if is_airborne else (next(mario.frame_cycle) if mario.spd.x else 6) - screen.blit(images[image_index + mario.facing_left * 9], mario.rect) + screen.blit(images[image_index + (mario.facing_left * 9)], mario.rect) for t in tiles: is_border = t.x in [0, (W-1)*16] or t.y in [0, (H-1)*16] screen.blit(images[18 if is_border else 19], t) diff --git a/index.html b/index.html index 7b281a1..ffb1c46 100644 --- a/index.html +++ b/index.html @@ -582,7 +582,7 @@ Point(x=1, y=2 <TD> = <DTa> - <DTa> # Ignores jumps if they share tzinfo object. <D/DT> = <D/DT> ± <TD> # Returned datetime can fall into missing hour. <TD> = <TD> * <float> # Also: <TD> = abs(<TD>) and <TD> = <TD> ±% <TD>. -<float> = <TD> / <TD> # E.g. how many hours are in timedelta. Also //. +<float> = <TD> / <TD> # E.g. how many hours are in TD. Also //, divmod().

#Arguments

Inside Function Call

func(<positional_args>)                           # func(0, 0)
@@ -2462,7 +2462,7 @@ rect = pg.Rect(240, 2
 
<bool> = <Rect>.collidepoint((x, y))            # Checks if rectangle contains the point.
 <bool> = <Rect>.colliderect(<Rect>)             # Checks if the two rectangles overlap.
 <int>  = <Rect>.collidelist(<list_of_Rect>)     # Returns index of first colliding Rect or -1.
-<list> = <Rect>.collidelistall(<list_of_Rect>)  # Returns indexes of all colliding rectangles.
+<list> = <Rect>.collidelistall(<list_of_Rect>)  # Returns indices of all colliding rectangles.
 

Surface

Object for representing images.

<Surf> = pg.display.set_mode((width, height))   # Opens new window and returns its surface.
 <Surf> = pg.Surface((width, height))            # New RGB surface. RGBA if `flags=pg.SRCALPHA`.
@@ -2559,7 +2559,7 @@ W, H, MAX_S = 50, 50<
     mario.facing_left = mario.spd.x < 0 if mario.spd.x else mario.facing_left
     is_airborne = D.s not in get_boundaries(mario.rect, tiles)
     image_index = 4 if is_airborne else (next(mario.frame_cycle) if mario.spd.x else 6)
-    screen.blit(images[image_index + mario.facing_left * 9], mario.rect)
+    screen.blit(images[image_index + (mario.facing_left * 9)], mario.rect)
     for t in tiles:
         is_border = t.x in [0, (W-1)*16] or t.y in [0, (H-1)*16]
         screen.blit(images[18 if is_border else 19], t)
diff --git a/parse.js b/parse.js
index 593e648..f3e68f3 100755
--- a/parse.js
+++ b/parse.js
@@ -304,7 +304,7 @@ const MARIO =
   '    mario.facing_left = mario.spd.x < 0 if mario.spd.x else mario.facing_left\n' +
   '    is_airborne = D.s not in get_boundaries(mario.rect, tiles)\n' +
   '    image_index = 4 if is_airborne else (next(mario.frame_cycle) if mario.spd.x else 6)\n' +
-  '    screen.blit(images[image_index + mario.facing_left * 9], mario.rect)\n' +
+  '    screen.blit(images[image_index + (mario.facing_left * 9)], mario.rect)\n' +
   '    for t in tiles:\n' +
   '        is_border = t.x in [0, (W-1)*16] or t.y in [0, (H-1)*16]\n' +
   '        screen.blit(images[18 if is_border else 19], t)\n' +
diff --git a/pdf/index_for_pdf.html b/pdf/index_for_pdf.html
index a223094..6f8fef1 100644
--- a/pdf/index_for_pdf.html
+++ b/pdf/index_for_pdf.html
@@ -17,7 +17,7 @@
 bitwise operators, 8, 31
bytes, 22-23, 25, 28-29

C

-

cache, 13
+

cache, 13
callable, 17
class, 4, 14-20
closure, 12-13
@@ -32,7 +32,7 @@ counter, 2, 4, 12, 17
csv, 26, 34, 46, 47
curses module, 33, 34
-cython, 49

+cython, 15, 49

D

dataclasses module, 12, 15
datetime module, 8-9
@@ -113,7 +113,7 @@

R

random module, 8
ranges, 3, 4
-recursion, 13, 21
+recursion, 13, 21
reduce function, 11, 31
regular expressions, 5-6
requests library, 35, 36

@@ -132,7 +132,7 @@ struct module, 28-29
subprocess module, 25
super function, 14
-sys module, 13, 21-22

+sys module, 13, 21-22

T

table, 26, 27, 34, 37-38, 45-46
template, 6, 36
diff --git a/pdf/index_for_pdf_print.html b/pdf/index_for_pdf_print.html index 7356641..e7bdcfe 100644 --- a/pdf/index_for_pdf_print.html +++ b/pdf/index_for_pdf_print.html @@ -32,7 +32,7 @@ counter, 2, 4, 12, 17
csv, 26, 34, 46, 47
curses module, 33, 34
-cython, 49

+cython, 15, 49

D

dataclasses module, 12, 15
datetime module, 8-9