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

Function load_image

flappyBird_pygame/flappy_bird.py:143–147  ·  view source on GitHub ↗
(img_file_name)

Source from the content-addressed store, hash-verified

141
142def load_images():
143 def load_image(img_file_name):
144 file_name = os.path.join(".", "images", img_file_name)
145 img = pygame.image.load(file_name)
146 img.convert()
147 return img
148
149 return {
150 "background": load_image("background.png"),

Callers 1

load_imagesFunction · 0.70

Calls 2

convertMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected