home *** CD-ROM | disk | FTP | other *** search
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- ██ ██ |
- █ █ |
- █ █ |
- ██ |
- █ █ |
- █ █ |
- ██ ██ Tvgas |
- Version 2.0 |
- |
- ██ ██████ |
- ██ █ ██ A Shareware |
- ██ █ ██ Turbo Pascal VGA Graphics Editor |
- ██ █ ██ |
- ██ █ ██ |
- ██ █ ██ User's Guide |
- █████ ██ |
- |
- |
- ███ ████ |
- █ █ █ |
- █ █ █ |
- █ █ █ |
- █ █ █ |
- █ █ █ |
- ██████████ |
- |
- I n t e r n a t i o n a l |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
-
-
- BSX's No-License Nonsense Statement!
-
- This product (C) 1990 BSX International
-
- This software is provided "as is" with no guarantees of any kind. You,
- the user, are permitted and encouraged to distribute it and use it, but
- under the following conditions:
-
- 1) You absolutely, positively may not sell this program without the
- permission of BSX International.
-
- 2) Under no circumstances should you distribute versions of this pro-
- duct which have been altered in any way without the permission of BSX
- International.
-
- 3) Under no circumstances should you remove the copyright notices from
- the code or from the documentation which is provided with it.
-
- 4) This is a shareware product. You may use it for free for a short
- period. After that you must either register or stop using it. You may
- still distribute it, however.
- If you find this program to be a blast, you ought to send along a
- $5.00 registration fee to:
-
- BSX International
- 806 Park Ridge Rd. Apt. A8
- Durham, NC 27713
-
- Make checks payable to Robert Roberds. Thanx!
-
- Pre-Documentation "Don't Panic" Reassurance
-
- Look, it's real easy. These dox are nice, and you oughtta skim them.
- But we gotta tell you: It's a true gut to use TVGAS.
-
-
- TVGAS: THE BSX SPRITE EDITOR
-
- 0. Facts and Stats
-
- This system contains the following files:
- TVGAS.EXE -The executable program.
- TVGAS.DOC -This document.
- BSXCAT.DOC -BSX International catalog.
- ORDER.DOC -BSX International order form.
-
- System requirements:
- IBM PC,XT,AT,PS/2 or compatible.
- 256K RAM at the very least.
- VGA or MCGA display hardware with full memory.
- Microsoft Mouse or compatible.
- DOS 2.1 or later.
- Hard disk recommended because, if you don't have one, yer a real loser.
-
- I. General Information
-
- TVGAS is a sprite editor for Turbo Pascal graphics programmers.It lets
- you create files containing the data for VGA/MCGA low-resolution images
- (320x200 pixels by 256 color mode). These files can then be loaded into
- memory and dumped to the screen via the PutImage function. Sprites of up
- to 60x40 pixels can be created. Since MCGA is rapidly becoming a standard
- mode for graphics games, we figure there'll be demand for this kind of
- utility.
- "I'm sure," yer no doubt thinking, "that there are plenty of programs
- like that around." Well, that's what _we_ thought. It started back in
- the summer of 1989 when BSX was working on the first of our truly sprite-
- intensive programs. It dawned on us that we were going to have to write
- our own kludgy sprite-producing program in order to get through with it.
- Well, in the finest capitalistic tradition, we decided to write a nice,
- versatile, user-lovable sprite editor to fill this gaping market niche.
- This led to the EGA utility TEGAS, which begat the current VGA product.
- We hope you all find TVGAS useful. We sure have.
-
- II. Installation
-
- All you have to do is put tvgas.exe on yer disk and go. If you put it
- in a directory that is in yer DOS search path, then you can run TVGAS
- from the DOS command line, regardless of the directory you happen
- to be in. TVGAS should load with no problem. If you want TVGAS to
- run without sound, just use the -s command-line switch, as in
-
- tvgas -s
-
- Now yer all set.
-
- III. Using TVGAS
-
- On startup, you'll be greeted by the annoying BSX hello screen, then
- sent to the work screen. From here you may choose:
-
- EXIT: Kicks you back to DOS.
-
- LOAD: Loads a sprite file from disk. You must only give the name, not
- the extension. TVGAS sprite files all end with .TPS.
-
- SAVE: Saves a sprite to disk. Once again, just give the file name;
- don't give the extension.
-
- NEW: Creates a new sprite. You pick the width and height of the new
- sprite with the mouse in a self-explanatory way.
-
- DRAW: Picks the default drawing mode, wherein each click of the mouse
- sets one pixel.
-
- FILL: Does a region fill in the selected color. Click inside the reg-
- ion to fill it.
-
- LINE: Draws a line in the selected color. Click on the endpoints.
-
- CIRCLE: Draws a circle in the selected color. Click first at the cen-
- ter, then on the circumference.
-
- RECTANGLE: Draws a rectangle in the selected color. Click on the
- opposite corners.
-
- FLIP: Lets you either FLIP the sprite (turn it upside down), or
- FLOP it (turn it left-to-right). A secondary menu pops up to let
- you choose which.
-
- A color: Pick a color just by clicking on its square at the top of the
- screen. Only 16 colors are displayed at once, but you have
- access to all 256 by selecting...
-
- A palette: Above the big color selection squares are the smaller pal-
- ette selection squares. Just click to select the palette you now
- want to work with. Note that the color of a palette square is
- the first color it corresponds to. Any and all colors from any
- and all palettes may be used in a given sprite, allowing for 256
- colors in all. Real pretty.
-
-
- Using TVGAS images in yer programs:
-
- OK, here's the fun part. Let's say yer writing a program in which you
- would like to put a 50x25 pixel image in different parts of the screen.
- Then you should start TVGAS, choose NEW, click to make a 50x25 sprite,
- and edit away. When yer done, you SAVE it as MYSPRITE.TPS and EXIT.
- Now you write yer program. To use VGA 320x200x256 mode in a Turbo
- language, you'll need VGA256.BGI, the add-on graphics driver. This can
- be obtained via Borland, or on any number of BBSs worldwide. Assuming
- you've taken care of that, write the code along these lines:
-
- program MyStuff;
- uses CRT,graph;
-
- var
- MSFile :file;
- buffer :pointer;
- MSSize :word;
- .
- .
- .
- procedure LoadMysprite;
- begin
- Assign(MSFile,'MYSPRITE.TPS');
- Reset(MSFILE,1);
- MSSize:=ImageSize(0,0,49,24);
- GetMem(buffer,MSSize);
- BlockRead(MSFile,buffer^,MSSize);
- Close(MSFile);
- PutImage(100,100,buffer^,NormalPut);
- FreeMem(buffer,MSSize);
- end;
-
- begin
- .
- .
- .
- LoadMysprite;
- Repeat until Keypressed;
- end.
-
- You get the idea. Have fun using TVGAS, and we hope you find it as
- massively useful as we have. Bet you do!
- General rule of thumb: Left button does stuff, right button undoes
- stuff. Think you can handle that?
-
- IV. Technical Info
-
- TVGAS was written in Turbo Pascal 5.5 on an IBM PC with an Intel
- Inboard 386, an Atasi 40MB hard drive, a Paradise VGA Pro card, and a
- Microsoft bus mouse. Mouse routines courtesy of Eduardo Martins, with
- some modifications.
-
- V. Acknowledgements
-
- Thanx to everyone who has has registered BSX International programs!
-
- VI. Version Info
-
- Version 2.0 released 10 Jan. 90. Improved logic for prompting of
- what filename to use when saving. Misc code cleanup.
-
- Version 1.0 released 4 Dec. 89. Initial release.
-
- -----
- Bob Roberds BSX International
- "The Ayatollah of Rock 'n' Rollah"
- Durham, North Carolina January 1990
- "You never sausage a place! You're always a wiener at Pedro's!."
- (South of the Border billboard, I-95).
- PS: Quit whining and just wear yer (expletive deleted)ing seatbelt.