MCPcopy Create free account
hub / github.com/RobotTelevision/CrowAssistant / render

Method render

Crow.py:136–153  ·  view source on GitHub ↗
(self, screen)

Source from the content-addressed store, hash-verified

134 self.lookback_cooldown -= 1
135
136 def render(self, screen):
137 # Render body
138 if self.crow.flying:
139 screen.blit(self.crow.fly[self.fly_index], (0, 0))
140 else:
141 screen.blit(self.crow.idle[self.idle_index], (0, 0))
142
143 # Render head
144 if self.crow.listen and not self.crow.Sleeping:
145 screen.blit(self.crow.headtilt, (0, 0))
146 elif not self.crow.flying and self.lookback_timer > 0 and self.crow.volume == 0:
147 screen.blit(self.crow.headlookback, (0, 0))
148 elif self.blink_timer > 0 and self.crow.volume == 0:
149 screen.blit(self.crow.headblink, (0, 0))
150 else:
151 screen.blit(self.crow.head[self.head_index], (0, 0))
152
153 return screen
154
155def Init():
156 return DesktopPet.get_instance()

Callers 1

UpdateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected