diff options
author | Chris Ball <cjb@pullcord.laptop.org> | 2007-08-21 00:03:19 (GMT) |
---|---|---|
committer | Chris Ball <cjb@pullcord.laptop.org> | 2007-08-21 00:03:19 (GMT) |
commit | 534f8a13fae962056ae7ffe2cfb80ff40a36ca63 (patch) | |
tree | bd7a65688821970fbcae3ecd59dd9e0ba1dd2c66 /data/graphics | |
parent | 1bb3a0f7cc86a6ee693486dcf566f146ffb307f0 (diff) |
Add a set of sample files.
Diffstat (limited to 'data/graphics')
-rw-r--r-- | data/graphics/jump | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/data/graphics/jump b/data/graphics/jump new file mode 100644 index 0000000..aec5896 --- /dev/null +++ b/data/graphics/jump @@ -0,0 +1,35 @@ +# both of these functions should be in the 'basic' package or some such +def clear_scr(): + print '\x1B[H\x1B[J' # clear screen, the hard way. +def wait(): + import time + time.sleep(0.1) + +# jumping man! +# having to escape the backslash is rather unfortunate +# i didn't have to do that in C64 BASIC +for i in xrange(0,50): + clear_scr() + print "\\o/" + print "_|_" + print " " + wait() + + clear_scr() + print "_o_" + print " | " + print "/ \\" + wait() + + clear_scr() + print " o " + print "/|\\" + print "| |" + wait() + + clear_scr() + print "_o_" + print " | " + print "/ \\" + wait() + |