Share your repls and programming experiences

← Back to all posts
Stick Man Animation
PYer (4013)

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!

Comments
hotnewtop
Parchin (7)

So beauty!!! Pretty! Sweet! Super!

PYer (4013)

Ah yes. ASCII animations, I think I might want to expand on this and make like a whole movie. @Parchin

Parchin (7)

@Parchin But this is in Polish so... Look only at working!

gantr833 (163)

Nice job. Although the stick figure kept jumping towards the top of the page. Is this on purpose?

HarveyH (213)

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 (4013)

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

HarveyH (213)

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