Stick Man Animation
PYer (4015)

Full Screen: Stick Man Animation
Hope you like this stick man animation. Feel free to fork this repl and create your own animations. Share them below if you want. Thanks, and please upvote!

You are viewing a single comment. View All
HarveyH (218)

You could do for clear instead...

from time import sleep
import replit

def clear():
  replit.clear()

def play(stages):
  for stage in stages:
    print(stage)
    sleep(.50)
    clear()


clear()

print('Hello. This is a stick man animation. Hope you like it!')

sleep(3)
clear()

stages = [
  '''
     0
    /|\\
    / \\
  ''', 
  '''
     0/
    /|
    / \\
  ''',
  '''
     0
    /|\\
    / \\
  ''',
  '''
      0/
     /|
     / \\
  ''',
  '''
      \\0
       |\\
      / \\
  ''',
  '''
         0            /|_0
        /|\\        <-|-|/|
        / \\           \|/ \\ 
  ''',
  '''
         0           /|_0
        /|\\       <-|-|/|
        / \\          \|/ \\ 
  ''',
  '''
         0          /|_0
        /|\\      <-|-|/|
        / \\         \|/ \\ 
  ''',
  '''
         0         /|_0
        /|\\    <--| |/|
        / \\        \|/ \\ 
  ''',
  '''
         0         /|_0
        /|\\   <-- | |/|
        / \\        \|/ \\ 
  ''',
  '''
         0         /|_0
        /|\\  <--  | |/|
        / \\        \|/ \\ 
  ''',
  '''
         0         /|_0
        /|\\ <--   | |/|
        / \\        \|/ \\ 
  ''',
  '''
         0         /|_0
        /|\\<--    | |/|
        / \\        \\|/ \\ 
  ''',
  '''
                      _0
                      /|
                      / \\ 
  ''',
  '''
                       0
                      /|\\
                      / \\ 
  ''',
  '''
                 0/
                /|
                / \\ 
  ''',
  '''
          \\0
           |\\
          / \\ 
  ''',
  '''
     0
    /|\\
    / \\ 
  '''
]

play(stages)
play(stages)
play(stages)
sleep(3)
print('Thanks for watching!')
sleep(5)
clear()

Otherwise pretty good!

PYer (4015)

@HarveyH I know, but I like how it is positioned at the bottom.

HarveyH (218)

@PYer Oh, in that case, use it if you like to! Good post by the way!