MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / SplatGlyph

Class SplatGlyph

examples/space_invaders/space_invaders.py:289–299  ·  view source on GitHub ↗

Describe a glyph representing a "splat".

Source from the content-addressed store, hash-verified

287
288
289class SplatGlyph(Glyph):
290 """Describe a glyph representing a "splat"."""
291
292 __mapper_args__ = {"polymorphic_identity": "splat"}
293
294 def glyph_for_state(self, coord, state):
295 age = state["tick"] - coord.tick
296 if age > 5:
297 return self.alt_data
298 else:
299 return self.data
300
301
302def init_glyph(session):

Callers 1

init_glyphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected