CODE SNIPPETS AREA

GAMES or UTILITIES or SNIPPETS or Home


ANIMDEMO.ZIP
Animation Demo - This program demonstrates using binary data files to put animated sprites (pictures) in your basic programs. Create several GIF files for each frame of your sprite. Use the included utility program to convert the GIFs to one binary data file. The ANIMATE subroutine in animdemo will load and display each frame of your sprite creating a animated picture. This helps to keep memory free and avoids using add-on libraries.

PLINKO.ZIP
Plink-O Demo - This simple program demonstrates using binary data files for graphics and it shows you one way of creating animation by manipulating basic's color palette. Have you heard of The Price is Right's Plinko game? You have a big board with pegs on it. You drop a chip from the top and the chip bounces down the board in a random fashion until it lands in one of the cups at the bottom. What this demo does is use a 256 color gif that represents the board with pegs on it. All of the possible ball locations and pegs are drawn using their own color attribute 0-255. The palette is updated in a loop to create the effect of a ball bouncing on down.

FLOAD.ZIP
Fast Loader for QBasic/QuickBASIC v1.0 (freeware) Written by Molnar \ Kucalaba Productions, 1996
Fast Loader - This program demonstrates loading binary data files into arrays quickly. This is really useful for keeping a program's graphics in a file until you are ready to display them. After loading the data into your array then you just use basic's PUT command to display it. You can use this subroutine to quickly load any kind of binary data, not just graphics data. It is fast too.


Most of the basic code on this page were written using the QuickBasic 4.5 editor. These code snippets are small demo programs demonstrating various programming techniques.

All the programs have been archived using PKWARE's compression. If you don't have a zip extraction program yet, then try going to the WINZIP home page. This program that can be used to extract the files from the zipped archives.

Back to Home Page


Counter
Visitors