How to Make Batch File Animations!

by I Got A Cup Productions in Circuits > Computers

139328 Views, 24 Favorites, 0 Comments

How to Make Batch File Animations!

batch fun.JPG
In this instructable I am going to show you how to make simple batch file animations.
Similar to "The Star Wars" batch.

So lets Get Started!

The Bouncing Ball

Bouncing_Balls_98PC.jpg
The Bouncing Ball!

After seeing the "Batch Star Wars" I decided to make The Bouncing Ball a simple batch that I coded in my free time (during school study halls).
This was my first attempt at an animation in batch.
After about a 5 days of trial and error. I got it working.

So now im going to show you how to make one yourself.

Downloads

The Bouncing Ball Code and Explanation

Bouncing_Balls_98PC.jpg
Of Course you need some code to make this animation.

Just like a camera having frames or "pictures" to make a video batch Can be used the same way.

So we need to make a bunch of "pictures" for the batch file to display in an timed order.

Here is some example code of a bouncing ball....

echo -------------------
echo *
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo -------------------
ping localhost -n 1 >nul
cls
echo -------------------
echo.
echo *
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo -------------------
ping localhost -n 1 >nul
cls

The * is the ball. After every frame the ball moves one space down.

After Every "Frame" we use cls to clear the screen so its ready for the next "frame".

And ping localhost -n 1 >nul is a code used to pause the code just for a fraction of a second.

You can download my full bouncing ball Batch below.

Downloads

Party Time Batch!

party_time_top.gif
Ah Yes The Party Time Batch!

Once again the "Party Time Batch" was a Batch I coded in my free time.

This batch is Still Suitable to be an "Animation". This is one of the most Fun batches I ever created.
This is Similar to the Bouncing Ball that they both have "Frames" but this one changes color.

Here is a Code Sample But Download the full batch.

:top
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo *********
echo *** ***
echo *** *** ******
echo ********* ****** **
echo *** *** ** * ** ** **
echo *** ** ** ****** ** ** **
echo *** ******* ** ** ** **
echo *** ** ** ** ** ** **
echo *** ** ** ** ** ** **
echo.
color 1a
ping localhost -n 0 >nul
color 2b
ping localhost -n 0 >nul
color 3c
ping localhost -n 0 >nul
color 4d
ping localhost -n 0 >nul
color 5e
ping localhost -n 0 >nul
color 6f
ping localhost -n 0 >nul
color 7a
ping localhost -n 0 >nul
color 8b
ping localhost -n 0 >nul
color 9c
ping localhost -n 0 >nul
goto time

Downloads

Post Your Creations!

batch fun.JPG
Have Fun with this information.

If You Could Post Your Animations I would love to see how they came out.

Below Are the 2 Files Again.

Upcoming.......

batch fun.JPG
Right Now Im working on a Batch Pong!!!

Batch Pong Copyright 2009 I Got a Cup Productions.