gameoverfont.py

Created by wperez274

Created on February 01, 2023

1.18 KB

Game Over Moving Logo across the screen. You can just put your own x,y,size,color


from math import *
from kandinsky import *
from ion import *
from time import *










spaceL=[
" ",
" ",
" ",
" ",
" "
]


spaceW=[
"    ",
"    ",
"    ",
"    ",
"    "
]



A=[
" 88 ",
"8  8",
"8888",
"8  8",
"8  8"
]

B=[
"888 ",
"8  8",
"888",
"8  8",
"888"
]






GAMEOVER=[
" 888  88  8   8 8888      88  8 8 8888 888",                   
"8    8  8 88 88 8        8  8 8 8 8    8  8",                  
"8 88 8888 8 8 8 888      8  8 8 8 888  888",                  
"8  8 8  8 8   8 8        8  8 8 8 8    8  8",                    
" 888 8  8 8   8 8888      88   8  8888 8  8"                   
]










OVERXY=A





SNAKE=[
" ### #  #  ##  # ## ####",
"##   ## # #  # ##   ##  ",
"  ## # ## #### # ## #   ",
"###  #  # #  # # # ####"
]
























def drawGAMEOVER(x,y,size,color):  
  for yOf in range(len(GAMEOVER)):
    for xOf in range(len(GAMEOVER[yOf])):
      if GAMEOVER[yOf][xOf]=="8":
        fill_rect(x+xOf*size,y+yOf*size,size,size,color)
    




  


fill_rect(0,0,322,222,(0,0,0))



x=50

while 1:


  sleep(0.02)
  x-=1


  drawGAMEOVER(x,50,5,(255,0,0))
  drawGAMEOVER(x,50,5,(0,0,0))
 

  if x+len(GAMEOVER[0])*4 < -8:
    x=322

During your visit to our site, NumWorks needs to install "cookies" or use other technologies to collect data about you in order to:

With the exception of Cookies essential to the operation of the site, NumWorks leaves you the choice: you can accept Cookies for audience measurement by clicking on the "Accept and continue" button, or refuse these Cookies by clicking on the "Continue without accepting" button or by continuing your browsing. You can update your choice at any time by clicking on the link "Manage my cookies" at the bottom of the page. For more information, please consult our cookies policy.