Qbasicnews.com
February 23, 2020, 08:33:00 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1] 2 3 4
  Print  
Author Topic: How does one store .gifs and other images without a libary  (Read 10421 times)
Kofman
Senior Member
**
Posts: 239



« on: April 20, 2003, 09:43:58 PM »

How would someone store .gifs and other images without the use of a libary. I can ofcoarse build the features used in a libary into my program if someone can provide some information on how that would be done.

Libaries are absolutly a NO NO. So what are the steps to be taken in order to do this. Please don't direct me to some of the sites with 5 pages of information on .bmp, .gif and so forth. I could never find enough patience to sit and read all of it through. It's way to black and white. So please tell me in basic terms what are the steps needed to be taken and provide bits of code where appropriet.

Thank You
Logged

иииииииииииииииииииииииииииииииииииииLINEAR INCиииииииииииииииииииииииииииииииииииии
п-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #1 on: April 20, 2003, 10:17:40 PM »

Well, as long as you'll be using someone else's code you'll be using a library. A library is just a bunch of functions with related functionality.

Go check here, at abc. They have several GIF loaders. One of those would fit your needs. http://www.basicguru.com/abc/graphics.htm

My favourite one is rich gieldreich's, as it is in assembly so it is blazing fast.
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Glenn
I hold this place together
*****
Posts: 786



WWW
« Reply #2 on: April 21, 2003, 03:04:04 AM »

Libraries, which I take to mean, in this context at least, as code written by somebody else, are a NO-NO and you don't want to learn to do it with your own code (which would essentially constitute a library, but written by you)?  Smiley  I'm trying to figure out what you think is in between.  Smiley
Logged

ravelling Curmudgeon
(geocities sites require copying and pasting URLs.)
I liked spam better when it was something that came in a can.
Windows should be defenestrated.
toonski84
__/--\__
*****
Posts: 2567



« Reply #3 on: April 21, 2003, 05:01:06 AM »

*sigh* take this example in writing.

no, plageurizing is a no-no.  but in every topic area, someone else has already written at least something relevant to what you are writing, and to leave out all information pertant to what they wrote would make your paper suck.  so instead, you're encouraged by everyone with a brain to use other people's information, but cite it so others know where it came from.  same goes for programming.  use other people's libraries.  let their hard work which was designed for the sole purpose for you to use in your game not go to waste, and use libraries.  just be sure to list in a text file that you used it, or properly follow the license guidelines (if there is one).
Logged

i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Kofman
Senior Member
**
Posts: 239



« Reply #4 on: April 21, 2003, 11:31:50 AM »

The problem arises when i physically can't use Libaries not just that I don't want to.
Logged

иииииииииииииииииииииииииииииииииииииLINEAR INCиииииииииииииииииииииииииииииииииииии
п-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
red_Marvin
Na_th_an
*****
Posts: 1509



WWW
« Reply #5 on: April 21, 2003, 12:16:23 PM »

can't use libraries?
do you have qb 1.1?
if so get 4.5
Logged

/post]
wizardlife
Na_th_an
*****
Posts: 1456


WWW
« Reply #6 on: April 21, 2003, 05:45:27 PM »

He's running it on school computers and can't set up every terminal in the lab to work with some lib.

Not every library is an ASM quicklibrary, tho... Just borrowing someone else's GIF-loading SUB would be a lib, too, and that wouldn't require any special setup.
Logged

Kofman
Senior Member
**
Posts: 239



« Reply #7 on: April 21, 2003, 06:40:26 PM »

yea wizardlie understands the position I'm in and what I want to do. The thing is, is that I never really created a libary and not to sound to novince here.... how do you extract a sub from a libary and implent it into your program. And which one can I use.

*** I will mantion all the libaries I'll be using and wait should I contact someone if I can do that? I won't be selling this game it's simply a game. I don't even think I'll ever use it in a resume. Just something for school.  :Huh:
Logged

иииииииииииииииииииииииииииииииииииииLINEAR INCиииииииииииииииииииииииииииииииииииии
п-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
wizardlife
Na_th_an
*****
Posts: 1456


WWW
« Reply #8 on: April 21, 2003, 07:01:58 PM »

You're not extracting anything from a lib. You just need someone's SUB that you can cut and paste into your code. A quick google yielded this page, on which there are two code snippets that purport to load GIFs:

http://www.qbasic.com/list.shtml

Just credit the author at the top of your program in the credits for the game.


Once again, I think your concentrating on the details, when you need to do a lot of basic work before how you load a gif will be very relevant.
Logged

Kofman
Senior Member
**
Posts: 239



« Reply #9 on: April 21, 2003, 07:11:50 PM »

naw I'm just gathering information. These four boards cover the major topics I want to learn about before I begin. Once I get a better understanding hey I'll take it step by step. I plan to save all these threads and keep them as notes while I work on the game. Oh and I jut played your game. WOW. Amazing. It's a genious game. I wish I had a friend to play with tho. I just sort of faced them each other and made em launch rockets. It became a quick end. I love how you had different charecters have different speeds, different strengh and so forth. It's one of the things I really want to do.

I forgot to thank you on the the explanation about the libary. and the link. Umm Thanks.
Logged

иииииииииииииииииииииииииииииииииииииLINEAR INCиииииииииииииииииииииииииииииииииииии
п-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
Kofman
Senior Member
**
Posts: 239



« Reply #10 on: April 21, 2003, 07:24:23 PM »

Alright one last thing before I start my hw. What's the best program for creating animated gifs and what are the general requirements or should I say limitations of those gifs. What's recomanded?

Lastly, now that we have solved the issue with loading gifs what about screen modes. Are their any simular subs that create their own screen modes as I've asked for before (hope it was this thread).
Logged

иииииииииииииииииииииииииииииииииииииLINEAR INCиииииииииииииииииииииииииииииииииииии
п-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #11 on: April 21, 2003, 09:36:22 PM »

You won't need animated gifs. You'll prefer different frames. Any drawing program can be used. My personal pick is Deluxe Paint II v.3
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Kofman
Senior Member
**
Posts: 239



« Reply #12 on: April 21, 2003, 11:00:22 PM »

oh, how many frames would it take to through a jab? 3 or more?

And would I actually animate the frames in the program?
Logged

иииииииииииииииииииииииииииииииииииииLINEAR INCиииииииииииииииииииииииииииииииииииии
п-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
wizardlife
Na_th_an
*****
Posts: 1456


WWW
« Reply #13 on: April 22, 2003, 12:12:01 AM »

Quote from: "Kofman"
oh, how many frames would it take to through a jab? 3 or more?

Depends. How fast is the jab? Start by just drawing the one frame of the jab fully extended. If you want to create inbetween frames later, they should be easy to add.

Quote

And would I actually animate the frames in the program?


Yes.
Logged

relsoft
*/-\*
*****
Posts: 3927



WWW
« Reply #14 on: April 22, 2003, 03:44:05 AM »

Quote from: "wizardlife"
He's running it on school computers and can't set up every terminal in the lab to work with some lib.

Not every library is an ASM quicklibrary, tho... Just borrowing someone else's GIF-loading SUB would be a lib, too, and that wouldn't require any special setup.



Try AF.Lib ;*)  You won't need a QLB to use ASM since it works via call absolute.

Just load QB with the /L option.
Logged

y smiley is 24 bit.


Genso's Junkyard:
http://rel.betterwebber.com/
Pages: [1] 2 3 4
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!