Crude stickman, walking animation
TobyS (59)

2 years of alevel computer science led to this lol

You are viewing a single comment. View All
Invizibo (1)

There's No module called replit as the error says.
Instead of import clear why not clear yourself using os.sys

from time import sleep
clear = lambda:__import__('os').system('clear')
frames=[
'''
         [-_]
          |\ 
          ||\ 
          |\ 
          | \ 
''',
''' 
           [-_]
            |\ 
            ||\ 
            |\ 
            | | 
''',

'''   
             [-_]
              |\ 
              ||
              ||
              || 
''',
'''    
               [-_]
                /\ 
               /|| 
                \| 
                || 
''',
'''     
                 [-_]
                  /\ 
                 /|| 
                  \| 
                   \ 
''',
'''   
                   [-_]
                    |\ 
                    ||
                    ||
                    || 
''',
'''
                     [-_]
                      |\ 
                      ||\ 
                      |\ 
                      | \ 
''',
'''
                       [-_]
                        |\ 
                        ||\ 
                        |\ 
                        | | 
''',
'''
                         [-_]
                          |\ 
                          ||
                          ||
                          || 
''',
'''    
                           [-_]
                            /\ 
                           /|| 
                            \| 
                            || 
''',
'''     
                             [-_]
                              /\ 
                             /|| 
                              \| 
                               \ 
''',
'''   
                               [-_]
                                |\ 
                                ||
                                ||
                                || 
''',
'''
                                 [-_]
                                  /\ 
                                  ||\ 
                                  |\ 
                                  | \ 
''',
'''
                                   [-_]
                                    |\ 
                                    ||\ 
                                    |\ 
                                    | | 
''',
]



def play(frames):
  for item in frames:
    print(item)
    sleep(.15)
    clear()
play(frames)
TobyS (59)

@Invizibo Thanks, idk why that stopped working