Page 1 of 5

A 2d Game

Posted: Fri Sep 09, 2005 7:44 pm
by Anonymous
Hi everybody. :)


First thing I want to say is this site is awesome. I didn't know you could do so much with QB. 8)

Now, I'm a beginner (not a newbie ;) I'm not going to be THAT annoying) and I'm starting a new project. I wanted to ask you some questions so I know what to do.

1. I wish to make a old mario style game with the figure jumping over things and so forth. I'd like to set it so the character is always moving. What type of tutorial should I look at to make an engine that works like that?

2. Graphic wise, where should I look about that?

Thanks a lot. :)

Posted: Fri Sep 09, 2005 7:52 pm
by MystikShadows
Hi JonathanS,

Welcome aboard. :-).

Ok...I think one of the best series you can read (as far as QB is concerned) to learn would be Vic's tutorial. They are 22 of them but the are very clear and to the point. you can read them here: http://www.petesqbsite.com/sections/tut ... n.shtml#11

Now, there is this new crave, have you heard of FreeBASIC (http://www.freebasic.net) ? if not...it's a 32 bit version of QBasic. This is a compiler however so you can use FBIDE or Any editor you want to write your code then you compile it with the FreeBASIC Compiler. It allows you to do much more advanced games, faster, without the memory limits of QBasic and family. I'd still read those tutorials and maybe do this game in QB (to get yourself back on track with the language) then take a good look at FreeBASIC and FBIDE. You'll see just how close they've come and how good a job they did at giving a QB like language that can do whatever the other languages can do.

Posted: Fri Sep 09, 2005 8:04 pm
by Zamaster
Howdy partner, hold your horses till QB Express 14(the site magazine) comes out. There will be a nice reference in there about sprite FX that should really help you spice up your game! Good luck!

Posted: Fri Sep 09, 2005 8:16 pm
by Anonymous
Thanks. :D

Posted: Fri Sep 09, 2005 8:39 pm
by sid6.7
MystikShadows wrote:Hi JonathanS,

Welcome aboard. :-).

Ok...I think one of the best series you can read (as far as QB is concerned) to learn would be Vic's tutorial. They are 22 of them but the are very clear and to the point. you can read them here: http://www.petesqbsite.com/sections/tut ... n.shtml#11

Now, there is this new crave, have you heard of FreeBASIC (http://www.freebasic.net) ? if not...it's a 32 bit version of QBasic. This is a compiler however so you can use FBIDE or Any editor you want to write your code then you compile it with the FreeBASIC Compiler. It allows you to do much more advanced games, faster, without the memory limits of QBasic and family. I'd still read those tutorials and maybe do this game in QB (to get yourself back on track with the language) then take a good look at FreeBASIC and FBIDE. You'll see just how close they've come and how good a job they did at giving a QB like language that can do whatever the other languages can do.
NOOOOOOOOOOOOOOOOOO....dark side it is

stay in the light(qbasic).....you, help, it will....

hehehehehe

Posted: Fri Sep 09, 2005 10:07 pm
by Zamaster
JA! FreeBASIC ist sehr shlect und blod!

Posted: Fri Sep 09, 2005 10:21 pm
by Zamaster
I have another suggestion, give making your own engine a shot. Id love to help if you need it.

Posted: Fri Sep 09, 2005 10:24 pm
by DrV
Zamaster wrote:JA! FreeBASIC ist sehr shlect und blod!
That'd be "schlect und bl?d", but I disagree anyway. :D To each his own, though.

Posted: Sat Sep 10, 2005 5:55 am
by SebMcClouth
Aber leute was machen wir jetz? Machen wir das jetz am deutsch?

Posted: Sat Sep 10, 2005 7:35 am
by Anonymous
Ich spricht Deutch gut nicht. (I can't even pronounce it correctly) :)


Thanks for offering to help, Zamaster. I have never made one before and I hoped to learn from it. I've only left the realm of using 10 print"Hello." about 6 months ago. :D

I found this site and went "WOW! You don't have to use numbers?" :)

I'm going to go over those tutorials on the weekend and see what i can do. :)

Thanks all of you for the help!!!

Posted: Sat Sep 10, 2005 8:33 pm
by Zamaster
ewww, toss the numberlines

Posted: Sun Sep 11, 2005 11:39 am
by paulunknown...
What are the numbers before PRINT do?
I see some codes with numbers before PRINT in my math book but I don't get what it does.

Posted: Sun Sep 11, 2005 12:06 pm
by Rattrapmax6
@ sid6.7: FB is not the dark side, neirther of them are... FB is just better rounded and supported on more systems... If you must code something that not every one can use, so be it.... :P

@ paul: The number before PRINT notes the Linenumber, thus:

Code: Select all

1 CLS
2 PRINT "Hello, world"
3 SLEEP
4 END
But you don't need them... Tho you can use them like this to make a loop (not recomended):

Code: Select all

1 CLS
2 x = x + 1
3 LOCATE 1, 1: PRINT x
4 IF INKEY$ = "" THEN GOTO 1

Posted: Sun Sep 11, 2005 10:17 pm
by paul
oooooooooooooooooooooooooooooooooooo
What is the difference between Gosub and Goto though?

Posted: Mon Sep 12, 2005 3:18 am
by SebMcClouth
e.g

Code: Select all

GOTO:
10 GOTO 200
200 '$$$
210 end

GOSUB:
ON ERROR GOSUB ErrHandler

'your stuff here!

END

ErrHandler:
'error handler stuff
RETURN
The moral of thi story? Goto goes a linenr/label and doesn't return. Gosub goes to a linenr/label and has to return.

grtz

Posted: Mon Sep 12, 2005 11:39 am
by Nodtveidt
GOTO is similar to jmp and GOSUB is similar to jsr. :D But people still argue that both are evil...mwuahahahahahahahahahahahaha humans...what silly creatures......

Posted: Mon Sep 12, 2005 4:29 pm
by Zamaster
FreeBASIC is evil and cheap cause' you have to work harder to use QB. This makes QB more of a joy to program instead of sleezing your way out and taking the easy road :P

Posted: Mon Sep 12, 2005 5:20 pm
by Deleter
Zamaster wrote:FreeBASIC is evil and cheap cause' you have to work harder to use QB. This makes QB more of a joy to program instead of sleezing your way out and taking the easy road :P
how is it easier, just because you can actually use all the system ram? or because you can bload bmps instead of copying that program that did it for you in qb? :lol: Its 99% the same thing....

Posted: Mon Sep 12, 2005 5:38 pm
by Zamaster
There you go, you can just load BMP's into memory. Good programmers are running out cause they lack the experience to do things like create a BMP loader.

Posted: Mon Sep 12, 2005 8:58 pm
by Deleter
lol, or they aren't held up by things like learning the specific headers which you can just look up online and learn in 10 minutes flat....