Render splat animations.
(session, window, state)
| 683 | |
| 684 | |
| 685 | def update_splat(session, window, state): |
| 686 | """Render splat animations.""" |
| 687 | |
| 688 | for splat in session.query(GlyphCoordinate).join( |
| 689 | GlyphCoordinate.glyph.of_type(SplatGlyph) |
| 690 | ): |
| 691 | age = state["tick"] - splat.tick |
| 692 | if age > 10: |
| 693 | splat.blank(window) |
| 694 | session.delete(splat) |
| 695 | else: |
| 696 | splat.render(window, state) |
| 697 | |
| 698 | |
| 699 | def score(session, window, state, glyph): |