RPGDXThe center of Indie-RPG gaming
Not logged in. [log in] [register]
 
 
Post new topic Reply to topic Goto page Previous  1, 2, 3  Next 
View previous topic - View next topic  
Author Message
XMark
Guitar playin' black mage


Joined: 30 May 2002
Posts: 870
Location: New Westminster, BC, Canada

PostPosted: Tue Jan 07, 2003 7:46 am    Post subject: [quote]

I think the best way to sum up QBasic is that it makes the complicated stuff easier to do, but the simple stuff harder to do.
_________________
Mark Hall
Abstract Productions
I PLAYS THE MUSIC THAT MAKES THE PEOPLES FALL DOWN!
Back to top  
Ninkazu
Demon Hunter


Joined: 08 Aug 2002
Posts: 945
Location: Location:

PostPosted: Tue Jan 07, 2003 12:01 pm    Post subject: [quote]

simple stuff like using the palette and such? Or writing to VGA memory?

Well whatever. I just like it because you get to do every single thing yourself instead of having crappy 'ol directx do it for ya.
Back to top  
Mandrake
elementry school minded asshole


Joined: 28 May 2002
Posts: 1341
Location: GNARR!

PostPosted: Tue Jan 07, 2003 1:08 pm    Post subject: [quote]

Quote:
. I just like it because you get to do every single thing yourself instead of having crappy 'ol directx do it for ya


Riiiiigggggggggghhhhhhhhht.

because y'know, directx is the only lib you can use, and you HAVE to use it.
Back to top  
Tenshi
Everyone's Peachy Lil' Bitch


Joined: 31 May 2002
Posts: 386
Location: Newport News

PostPosted: Tue Jan 07, 2003 5:58 pm    Post subject: [quote]

Quote:
simple stuff like using the palette and such? Or writing to VGA memory?

Code:
FOR I = 0 TO 255
 OUT &H3C8, I
 OUT &H3C9, PAL(I).RED
 OUT &H3C9, PAL(I).GREEN
 OUT &H3C9, PAL(I).BLUE
NEXT


- Writes a palette to VGA.

- DirectX 9 is the talk of the hour currently. Actually, I can't wait to learn it. Nothing wrong with DirectX. I want to learn OpenGL and all them, too.. but there's nothing wrong with DirectX. And like Mandrake said, it isn't the only graphics Lib. You can use OpenGL or that other thing....
_________________
- Jaeda
Back to top  
Ninkazu
Demon Hunter


Joined: 08 Aug 2002
Posts: 945
Location: Location:

PostPosted: Tue Jan 07, 2003 8:44 pm    Post subject: [quote]

There are many things wrong with it beyond what I can post here, but what I meant by doing things all myself is just what I want to do. Haven't you ever felt ashamed when you use Direct3D to completely render a terrain you've loaded without many formulas and whatnot? But as I said before... called me a purist, but I must do everything right down to the pixel plotting routine.
Back to top  
Mandrake
elementry school minded asshole


Joined: 28 May 2002
Posts: 1341
Location: GNARR!

PostPosted: Tue Jan 07, 2003 8:53 pm    Post subject: [quote]

which you can do in C/C++.

Duh.

How do you think C/C++ libs are done? Via magic? DirectX is a lib, it was programmed to extend C/C++ it's not the language itself. Is DirectQB, DS4QB, Dash, etc necassy in QB? no. Neither are libs in C/C++. Hell it's easier to code your own stuff in C/C++, even creating ASM code to do all the speed critical stuff for you since there are thousands of lib managers and tools to assist you.
Back to top  
Ninkazu
Demon Hunter


Joined: 08 Aug 2002
Posts: 945
Location: Location:

PostPosted: Tue Jan 07, 2003 9:26 pm    Post subject: [quote]

Quiet you!
*murmurs*

Well.......... I like QB and no one can take that away from me!

I also hate asm because I don't understand it at all.

Yes... QB... yes....
Back to top  
dw74
Pretty, Pretty Fairy Princess


Joined: 19 Dec 2002
Posts: 5
Location: California

PostPosted: Wed Jan 08, 2003 4:48 am    Post subject: QBasic [quote]

I actually really like QBasic, I used it to write my first RPG. Its simple and fast to program.
But if I have to do anything at all mathmatically complex then I always use C++. Another feature that makes C++ infinately more powerful is classes, they make it possible to abstract everything away from the main program and simplify the code in main().

Also it is (technically):
Code:
return 0;


and not:
Code:
return EXIT_SUCCESS;


As that is how it is defined in the ANSI/ISO standard.
Back to top  
Tenshi
Everyone's Peachy Lil' Bitch


Joined: 31 May 2002
Posts: 386
Location: Newport News

PostPosted: Wed Jan 08, 2003 6:17 am    Post subject: [quote]

EXIT_SUCCESS is an ANSI standard constant with the value 0 , *for now*.

when possible, main() should always return EXIT_SUCCESS, and not "return 0". It's just a good programming practice.
_________________
- Jaeda
Back to top  
Ninkazu
Demon Hunter


Joined: 08 Aug 2002
Posts: 945
Location: Location:

PostPosted: Wed Jan 08, 2003 11:59 am    Post subject: [quote]

in all of my many C++ books I've never seen EXIT_SUCCESS
Back to top  
Mandrake
elementry school minded asshole


Joined: 28 May 2002
Posts: 1341
Location: GNARR!

PostPosted: Wed Jan 08, 2003 12:50 pm    Post subject: [quote]

that's because most programmers are too lazy too type up anything more than the number 0. heh.
Back to top  
Tenshi
Everyone's Peachy Lil' Bitch


Joined: 31 May 2002
Posts: 386
Location: Newport News

PostPosted: Wed Jan 08, 2003 6:09 pm    Post subject: [quote]

- Deitel & Deitel : C++ How to Program. Third Edition
p. 923
( I was taught this method in my CompSci courses ).

"...The argument is normally the symbolic constant EXIT_SUCCESS or EXIT_FAILURE. If exit is called with EXIT_SUCCESS, the implementation-defined value for successful termination is returned to the calling environment. If exit is called with EXIT_FAILURE, the implementation-defined value for unsuccessful termination is returned...."

- Key phrase being "implementation-defined value for ..."

- And as Mandrake said, most Programmers are too lazy to do it this way. OUr instructors took off points on our programs if we didn't do it that way.
_________________
- Jaeda
Back to top  
dw74
Pretty, Pretty Fairy Princess


Joined: 19 Dec 2002
Posts: 5
Location: California

PostPosted: Wed Jan 08, 2003 11:05 pm    Post subject: QB [quote]

I've never seen an ANSI Standard Book that used:

Code:
return EXIT_SUCCESS;


Also the ANSI C++ Standard (http://www.ansi.org) says that EXIT_SUCCESS and EXIT_FAILURE are C standards not C++, seeing as how they are contained only in the <cstdio> library and no other. I guess it just depends on which language you are using. EXIT_SUCCESS, it looks like, was deprecated in the C++ standard.

The ANSI standard merely claims that when the program reaches the end of main it must return 0; or something with the same effect. It onlys says that a return statement in main() will have the effect of leaving main, it makes no definition of the actual return value or that EXIT_SUCCESS even has to be defined anywhere else except <cstdio>
Back to top  
akOOma
Wandering Minstrel


Joined: 20 Jun 2002
Posts: 113
Location: Germany

PostPosted: Sat Jan 25, 2003 6:09 pm    Post subject: [quote]

I started also with QB and I'm still coding with it. But for games I use Libs like UGL, RelLib, cause of better graphic routines. I think it's an experience to code good AND fast games in QB, cause QB it's not the latest coding language, you know.

But I must say: At the moment I'm learning C++ with DirectX to make better and faster games.

As a last word to all QB coder:

Keep on coding in QB !!!!!!!!!!!!!!!!!!!!!
_________________
Keep on codin'
-----------------

-----------------
Just another post to increase my rank...
Back to top  
Nexinarus
Slightly Deformed Faerie Princess


Joined: 25 Oct 2002
Posts: 32
Location: In the distance

PostPosted: Mon Jan 27, 2003 12:28 am    Post subject: heh [quote]

Fun a flame war ;).

Ok, i think the number one reason people code in qb is because they find it easier, or, do not have anything else.

Also whats wrong with using libs? im lazy and id rather not code my own 10mb+ library to draw 3d things.

Also, return 0 is nicer, i hate massive programs ;). Massive programs seem to be more cryptic than short programs, im a minimalistic :P.
_________________
Anorexia is phat!
Back to top  
Post new topic Reply to topic Page 2 of 3 All times are GMT
Goto page Previous  1, 2, 3  Next 



Display posts from previous:   
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum