MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / init_glyph

Function init_glyph

examples/space_invaders/space_invaders.py:302–400  ·  view source on GitHub ↗

Create the glyphs used during play.

(session)

Source from the content-addressed store, hash-verified

300
301
302def init_glyph(session):
303 """Create the glyphs used during play."""
304
305 enemy1 = ArmyGlyph(
306 "enemy1",
307 """
308 #W-#B^#R-#B^#W-
309 #G| |
310 """,
311 """
312 #W>#B^#R-#B^#W<
313 #G^ ^
314 """,
315 )
316
317 enemy2 = ArmyGlyph(
318 "enemy2",
319 """
320 #W***
321 #R<#C~~~#R>
322 """,
323 """
324 #W@@@
325 #R<#C---#R>
326 """,
327 )
328
329 enemy3 = ArmyGlyph(
330 "enemy3",
331 """
332 #Y((--))
333 #M-~-~-~
334 """,
335 """
336 #Y[[--]]
337 #M~-~-~-
338 """,
339 )
340
341 saucer = SaucerGlyph(
342 "saucer",
343 """#R~#Y^#R~#G<<((=#WOO#G=))>>""",
344 """#Y^#R~#Y^#G<<((=#WOO#G=))>>""",
345 )
346
347 splat1 = SplatGlyph(
348 "splat1",
349 """
350 #WVVVVV
351 #W> #R*** #W<
352 #W^^^^^
353 """,
354 """
355 #M|
356 #M- #Y+++ #M-
357 #M|
358 """,
359 )

Callers 1

mainFunction · 0.85

Calls 7

ArmyGlyphClass · 0.85
SaucerGlyphClass · 0.85
SplatGlyphClass · 0.85
PlayerGlyphClass · 0.85
MissileGlyphClass · 0.85
MessageGlyphClass · 0.85
add_allMethod · 0.45

Tested by

no test coverage detected