Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Theory on sport games in darkbasic

Author
Message
Killercube 32
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Planet X
Posted: 30th Jan 2004 15:57
Hi, I'm fairly new here and I've been reading around and saw
a few questions on creating sports games.

Of course your not going to make 2004's sport game of the year, but here would be an idea.

Let's say your making baseball, you would have to create the models first (duh) but then your probably thinking "What about the coding?"
Well, here is a theory.
You could create 3d/2d tiles all around the field and hide them.
You would store batters info in a variable.
If batter just hit the ball you could create AI to throw the ball if
batter running 3-4 tiles away from base. If not have him hold the ball.

I have no idea how you would want to do it, but that is how I would.

I would like to hear other peoples variations on this.

Thanks alot,
killercube

I thought i said that i was playing zelda outside grandma!
It was a secret!
DarkBasic Projects:Nightwalker,RTS Game
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 30th Jan 2004 16:26
Well, I'd have the field as a big object, and the bases etc as limbs on the object. That would allow you to guage the position of the bases and the home base. It's actually really simple to get the guys running around the bases using a simple pointing system and a distance check to determine when the base has been reached.

For the Pitcher, I'd have an animated pitcher dude with a few different throws, then simply stick the ball to his hand until the animation frame that releases it - then you treat it as a projectile.

For the batter, I'd have a simple bar with a skill point - like a line with a bubble in the middle, the ball would fall down and you'd have to 'bat' when the ball is in the bubble, the bubble could be used to gauge the projectile qualities of the ball - a perfect hit resulting in a home run, or if the ball is too high it might get knocked really high up - making it easy to catch. That would be a nice way to handle it because you'd have a similar dilema as a real life batter, deciding when to actually go for a hit - because the pitchers throw style could determine the speed of the ball falling passed the bubble.

The fielding players would basically run after the ball or mark a base, pretty straightforward AI, because the AI difficulty would be determined by how accurate they are - and all the AI could easily be perfectly accurate in a game like this if you wanted.

I reckon a baseball game would be real easy in DB, and the engine for it would'nt need a total monster PC, not too many players, small field, relatively relaxed and skillful gameplay.

Why not give it a go Killercube?


Van-B


The nature of Monkey was irrepressible!.
Killercube 32
21
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Planet X
Posted: 30th Jan 2004 23:09 Edited at: 30th Jan 2004 23:11
Hmm, maybe i will. I could probably do it, just would take a little extra while because im graphically retarded

I thought i said that i was playing zelda outside grandma!
It was a secret!
DarkBasic Projects:Nightwalker,RTS Game
JoelJ
21
Years of Service
User Offline
Joined: 8th Sep 2003
Location: UTAH
Posted: 31st Jan 2004 00:27
if someone is making a baseball game, you should have it so you can put in more than 4 bases, and put them wherever you want, thus making a differnt varaity...thats what i would do if i were making a BBall game

Login to post a reply

Server time is: 2025-05-22 11:14:55
Your offset time is: 2025-05-22 11:14:55