MCPcopy Index your code
hub / github.com/geekcomputers/Python / isCollide

Function isCollide

Chrome Dino Automater.py:13–28  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

11
12
13def isCollide(data):
14 # for cactus
15 for i in range(329, 425):
16 for j in range(550, 650):
17 if data[i, j] < 100:
18 hit("up")
19 return
20
21 # Draw the rectangle for birds
22 # for i in range(310, 425):
23 # for j in range(390, 550):
24 # if data[i, j] < 100:
25 # hit("down")
26 # return
27
28 # return
29
30
31if __name__ == "__main__":

Callers 1

Calls 1

hitFunction · 0.70

Tested by

no test coverage detected