MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / draw

Method draw

DemoPrograms/Demo_Pong_Multiple_Platforms.py:131–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

129 return pos
130
131 def draw(self):
132 self.graph.relocate_figure(self.id, self.curx, self.cury)
133 if self.cury + self.y + BAT_SIZE[1] <= GAMEPLAY_SIZE[1] and self.cury + self.y + BAT_SIZE[1] >= 0:
134 self.cury += self.y
135 if self.cury <= 0:
136 self.cury = 0
137 self.y = 0
138 if self.cury >= GAMEPLAY_SIZE[1]:
139 self.cury = GAMEPLAY_SIZE[1]
140 self.y = 0
141
142
143def pong():

Callers 1

pongFunction · 0.95

Calls 1

relocate_figureMethod · 0.80

Tested by

no test coverage detected