Game Development Community

dev|Pro Game Development Curriculum

Baseball Game

by profmusic · 05/14/2008 (4:22 pm) · 4 comments

I'm a noob, and I'm making a baseball game. So far i have that you can look around and throw the ball.
Plans for the Week:
1. Fix the hitting so that the AI can hit.
2. Allow the AI to pitch, and the Player to hit.

I'm hoping to get at least this much down, since its my friends present.

#1
05/14/2008 (5:02 pm)
Cool. Is your baseball game played from the first person perspective?
#2
05/15/2008 (6:30 pm)
Yes, it's first person
#3
05/16/2008 (12:10 am)
AI is the trickiest part of sports game. For the base running, you can add Path Markers (like in Stronghold) for each of the bases. For the ball, you will want to make it a RigidShape and add an applyImpulse call on the swing. Not really sure about actually hitting the ball but I would maybe add a trigger to the homeplate that would check whether or not the ball has entered or exitted and if the player swung then apply the impulse.

Also, you might want to checkout the book, Game AI By Example, there is some information about sports AI. It is not a book on Torque and doesn't go specifically into Baseball either but it could help. (http://www.wordware.com/files/ai/)
#4
05/16/2008 (7:54 pm)
Thanks Matt, I'll check it out.