Kevin Dill is the latest developer in a series of interviews I’ve done with the authors of Game Programming Gems, 8th edition. He wrote a chapter on patterned approaches to modular artificial intelligence (AI) games. These are some excerpts from our interview:
Arti Gupta: AI is being increasingly used in games, and in your chapter you stress the importance of modularizing your code so you can make the AI code reusable. Can you talk a little more about that?
Kevin Dill:
I think this is a weakness that we’ve got in gaming and AI. If you think about graphics, for instance, there’s a lot that gets reused. We have this notion that we use a texture map triangle and all these tools, and in every game it’s done the same. In AI, we’re having a hard time with that, and to a certain extent every game is different. But there’s still a lot in common between, say, Halo and Red Dead Redemption, which are two very different games.
If you think about what AI is, there are really two pieces to it. One is the recent architecture itself, whether it’s a planning architecture, a behavior tree, a finance state machine -- whatever you use. And there’s been a lot of work to reuse this. You can buy middleware architectures. There are architectures like Soar or CoJACK from academia that you can get for free.
But the other half -- the half, to me, that is by far the bigger half -- is the behavior. That means all of the data that goes on top of the architecture to actually control your characters. And for me, I usually spend a month or two building my architectures, and it gets continually tweaked after that, but for the most part it’s done. Probably 80 percent of the work is building that behavior. But we haven’t found good ways to reuse the behavior.
A.G.: In your chapter, you also make a distinction between Boolean- and float-based logic. Can you give an example of Boolean logic and how you would use it in a game?
K.D.:
This is a distinction that’s been growing on me recently. The idea of Boolean-based logic is sort of what you’re used to seeing. You have a bunch of clauses and each clause is evaluated as true or false. Everything is black and white; it’s either yes or no.
The idea behind float-based logic is you try to keep things as floating point numbers for as long as possible. So instead of knowing that you want to attack someone -- yes, it’s true, I want to attack somebody -- you know how badly you want to attack somebody. I want to attack them with a score of 53. From my point of view, Boolean logic is something that I’d argue we should be moving away from. But there is still a lot of room for it in a lot of games.
Arti Gupta has worked on software-engineering projects as a developer, architect and project and product manager for more than 10 years. Now she does community management for game development on the Intel Software Network site. Gupta likes reading, traveling and spending time with her family.
Available at Amazon.com:
Mario vs. Donkey Kong Mini-Land Mayhem!
Videogaming & Video Game Reviews
- 'Dead Space' for iOS
- Why are Video Games for Girls so Lame?
- The Muddy Beauty of DiRT 2
- The Reality of Indie Game Development
- Using Artificial Intelligence in Game Development
- Top 10 Most Anticipated Video Games of 2011
- Need for Speed Drives Back to Roots
- Developing and Optimizing Games for Netbooks
- 'Bejeweled 3'
- Rolling Thunder, Analytics and Performance Drive Need for Speed World
- Who You Gonna Call? Ghostbusters Challenges
- Dude! Who Killed My First-person Shooter?
- Racing to the Finish Line: Chris Southall Talks Total War and Sonic
- The Force Remains Strong with LEGO Star Wars III: The Clone Wars
- Unreal Engine 3 Brings Chadam to Life on Web Video
- 'Pac-Man Championship Edition DX'
- 'Infinity Blade'
- TRON: Evolution -- Game Developers Go Hollywood
- EA Sports Moves Graphics-rich Gaming Online
- Humble Opinions: From The Sims to Indie Games
- Meet Mr. Industrial: Justin Lassen's Music Machine
- 'Assassin's Creed: Brotherhood'
- 'Mario Vs. Donkey Kong: Mini-Land Mayhem'
- 'Time Crisis Razing Storm'
- 'Arcania: Gothic 4'
- 'Disney Epic Mickey'
- 'Final Fantasy: The 4 Heroes of Light'
- 'Ace Combat: Air Assault'
- 'Game Dev. Story'
- Epic Games Unveils 'Gears of War 3' Multiplayer Details
- 'Castlevania: Lords of Shadow'
- 'Sonic the Hedgehog 4: Episode 1'
- 'Amnesia: The Dark Descent'
- 'Enslaved: Odyssey to the West'
- 'Valkyria Chronicles II'
- 'Dead Rising 2'
- 'Kingdom Hearts Birth by Sleep'
- 'Halo: Reach'
- 'Mafia II'
- 'Scott Pilgrim' vs. Its Video Game References
- 'Madden 11'
- 'Metroid: Other M'
- 'APB'
- 'Scott Pilgrim vs. The Games'
- Burn Zombie Burn
- Scott Pilgrim Vs. The World: The Game
- Starcraft 2
- Dolby's Axon Software
- What Video Games Could Teach
- Valkyria Chronicles II
- Metal Gear Solid: Peace Walker
- Monkey Island 2: LeChuck's Revenge
- Clash of the Titans
- DeathSpank
- Alien Spawn
- Halo: Combat Evolved - Failure is an Option
- Sin and Punishment: Star Successor
- Medal of Honor
- Singularity
- ModNation Racers
- Minecraft
- 3D Dot Heroes
- Eversion
- Backbreaker
- The Sims 3: Ambitions
- Aquaria
- Lost Planet 2
- Star Trek Online
- Coming of Age in Video Games
- Putting Down Video Games And Picking Them Back Up Again
- Government Should Stop Kids From Buying Violent Video Games
- Video Games Don't Cause Children to be Violent
- 'Monster Hunter Tri' (Wii)
- 'Dead to Rights: Retribution' (Xbox 360)
- Deus Ex Focuses on the Play
- 'Sam & Max Season 3: The Penal Zone'
- Sleep is Death
- 'FarmVille': A Love Story
- 'Blur'
- 'Battlefield: Bad Company 2'
- 'Assassin's Creed II: Bonfire of the Vanities'
- Assassin's Creed II - Xbox 360
- 'Avatar: The Game'
- 'WWE SmackDown vs. Raw 2010' - Xbox 360
- NCAA Basketball 10 - PS3
- Disney Jonas - DS
- 'God of War' Collection - PS3
- How to Beat the Hydra in 'God of War' - PS3
- 'Left 4 Dead 2' - Xbox 360
Video Games: Using Artificial Intelligence in Game Development
Copyright © 2011 Studio One Networks. All rights reserved.
Recommend
Your Favorite Comic Strips Online
Daily Comics & Your Favorite Comic Strips Online
Your favorite comics strips Animal Crackers, Annie, Bound & Gagged, Brenda Starr, Brewster Rockit: Space Guy, Broom-Hilda, Dick Tracy, Gasoline Alley, Gil Thorp, Housebroken, Loose Parts, The Middletons, Pink Panther, Raising Hector, Sylvia, 9 to 5, Bliss, Bottom Liners, Love Is..., Pluggers all online at ComicStripNation.com