Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do i make a fighting game in Qbasic?
#1
Hey everyone this is MechCommander42002 and i'm currently starting a fighting game but theres no code typed yet because i don't know how to begin a fighting game if anyone could help me out please send me a small fighting game code example through e-mail i would appreciate that, my current e-mail is MechCommander42002@yahoo.com you could maybe give me some code examples here to i would appreciate that as well thanks Big Grin
Reply
#2
So you're l33t at RPGs and have no idea how to start a fighting game, eh?

If you're actually serious about this, start by making a list of all the information you want to store about the player... position, move currently in, frame into the move, health, scancodes for each control key, etc... then set up your user-def'd type with all of that and DIM two of them for each player.

Plug in some dummy values, and load up some sprites out of one of your RPGs to use temporarily (drawing fighting game sprites takes forever). See if you can get it displaying the dummy sprites in the correct positions on the screen, and hook up the controls to move them back and forth.

If you get that working, work on some basic masking to keep the players on the screen, and to keep them from going on top of each other.


I liked my solution: Make a fighting game without the fighting part. Have you seen it? It's a projectile based duelling game. And there's a new d/l here.
Reply
#3
Hey wizardlife is there anything you could give me as refrence?
Reply
#4
Quote:Hey wizardlife is there anything you could give me as refrence?

Whay do you mean, reference? Like, code? It's all pascal, but there's no secret to it. There's initialization, there's an animation loop, and there's mop up. In the animation loop, everything moves around, all the particle get updated, keypresses are checked for... The structure is the same as for an RPG.

Except there's gravity. Just add 0.2 to the Y velocity every cycle. At 60 fps, that looks pretty good.
Reply
#5
I need a small code example and then i can go on from there send to me through e-mail MechCommander42002@yahoo.com or post it in your next message k Big Grin
Reply
#6
In one of the other zillion fighting game threads someone posted a link to Megaman's game. Get that. It's QB, and it's more what you're looking for anyways.

If you really want the Pascal source for my game, it's in this zip:

http://www.angelfire.com/wizard/pigeonca...rmarki.zip
Reply
#7
It's not loading up and are you able to give me a quick sample code for a fighting game so i can go from there. Because the game you gave me has nothing to do with a fighting game unless it does.
Reply
#8
sorry to but in but aligorithms would be nice
·····································LINEAR INC·····································
Ø-----------------------------------------------------------------------O
From Problem to Solution - We take the shortest distance
Reply
#9
Someday, I'll add this SUB to RelLib.

DECLARE SUB MakemyGame(Author$,Title$)

j/k
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)