1 / 103

Designing Game AI & AI Based Games

Designing Game AI & AI Based Games. 2013-07-18. Designing Game AI. Questions. What behaviors do we need to produce? What techniques are best suited to producing those behaviors ? REMEMBER: GAI vs AAI. Designing Behaviors. Not fixed, behaviors evolve over course of implementation.

shepry
Download Presentation

Designing Game AI & AI Based Games

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Designing Game AI &AI Based Games 2013-07-18

  2. Designing Game AI

  3. Questions • What behaviors do we need to produce? • What techniques are best suited to producing those behaviors? REMEMBER: GAI vs AAI

  4. Designing Behaviors • Not fixed, behaviors evolve over course of implementation

  5. Movement • Will characters be represented individually?

  6. Movement • Will characters be represented individually? • How realistic should movement be?

  7. Movement • Will characters be represented individually? • How realistic should movement be? • Does motion need to be physically simulated? How realistic does the physics need to be?

  8. Movement • Will characters be represented individually? • How realistic should movement be? • Does motion need to be physically simulated? How realistic does the physics need to be? • How much pathfinding do we need?

  9. Movement • Will characters be represented individually? • How realistic should movement be? • Does motion need to be physically simulated? How realistic does the physics need to be? • How much pathfinding do we need? • Will character motion be affected by other characters?

  10. Decision Making • What is the full range of actions available to an agent in the game?

  11. Decision Making • What is the full range of actions available to an agent in the game? • How are those actions grouped together to fulfill character goals?

  12. Decision Making • What is the full range of actions available to an agent in the game? • How are those actions grouped together to fulfill character goals? • When will agents change behavior? Why?

  13. Decision Making • What is the full range of actions available to an agent in the game? • How are those actions grouped together to fulfill character goals? • When will agents change behavior? Why? • Do agents need to lookahead to make the best decision?

  14. Decision Making • What is the full range of actions available to an agent in the game? • How are those actions grouped together to fulfill character goals? • When will agents change behavior? Why? • Do agents need to lookahead to make the best decision? • Are agent decisions dependent on player actions?

  15. Decision Making • This is where things go off the rails for AI designers • Trying ambitious AI techniques is alluring • In real-world game development, this can potentially lead to failure

  16. Strategic/Tactical AI • Do agents need to understand large-scale properties of the game?

  17. Strategic/Tactical AI • Do agents need to understand large-scale properties of the game? • Do agents need to work together?

  18. Strategic/Tactical AI • Do agents need to understand large-scale properties of the game? • Do agents need to work together? • Can agents think independently and still show group behaviors?

  19. Technique Selection • Need to determine best way to implement behaviors • Fairly straightforward • Balance required between “cool/exotic techniques” and simple but useful AI

  20. Game AI by Genre • Shooters • Driving game • RTS • Sports games • Turn-based strategy

  21. Game AI by Genre • Shooters

  22. FPS AI • Movement • Firing • Decision making • Perception • Pathfinding • Tactical AI (e.g. Halo) • Drama management (e.g. L4D)

  23. FPS Movement • Most visible part of FPS AI • Genre has most complex animations • Running, firing vs. cartwheels, leaping, etc. • AI has two tasks • Work out the route • Break up motions into animations • Need to dynamically adjust to level and other agents

  24. FPS Firing • Unbelievable accuracy is bad (e.g. Doom) • How do you make agents miss believably?

  25. FPS Decision Making • FSMs • Behavior Trees • Game-specific scripting languages • FSMs + goals • Decision Trees • Planners (recall F.E.A.R)

  26. FPS Perception • Agents “come to life” when player nears • Improvements began with Goldeneye • Messaging • Sense Management for cover, camouflage • Cone of sight, simple sound model

  27. FPS Pathfinding and Tactics • NavMeshes are ubiquitous • Additional info used for tactical analysis • Half-Life uses waypoints • Pathfinding graphs tagged with the action required to traverse an edge

  28. FPS Game AI • Similar strategies for platformers, adventure games, MMOs • Similarities? Differences?

  29. Game AI by Genre • Shooters • Driving game

  30. Driving Game AI • Movement • Pathfinding • Tactics

  31. Movement in Driving Games • Early games used “racing lines” • Rails based on splines • AI could look up position/speed and render it • Still used for “background” cars • Modern approach: AI applies controls to physics simulation • Assistance from racing lines

  32. Movement in Driving Games • Overtaking other cars • Realistic approaches • Alternate racing lines • Chase the rabbit • Other approaches • Fuzzy decision making (Manic Karts) • Supervised ANNs (Forza Motorsport)

  33. Pathfinding and Tactics in Driving Games • Pathfinding needed when there is no fixed track • Basic pathfinding is usable in such cases • Simple tactical AI can be used for police cars to block player routes (e.g. Grand Theft Auto)

  34. Game AI by Genre • Shooters • Driving game • RTS

  35. RTS Game AI • Pathfinding • Group movement • Tactical AI • Decision making

  36. RTS Pathfinding • Early RTS games required efficient pathfinding • Grid-based layout • Precomputed routes

  37. RTS Group Movement • Most games use formations • Fixed patterns • Players have limited control over formation shapes

  38. RTS Tactical AI • Guides pathfinding around terrain • Location selection using influence mapping

  39. RTS Decision Making • Typically state machines and decision trees • Markovian and probabilistic methods • Rule-based systems

  40. Game AI by Genre • Shooters • Driving game • RTS • Sports games

  41. Sports Game AI • Physics prediction • Simple projectile prediction • Playbooks and Content Creation • Formation movement • Expert knowledge

  42. Game AI by Genre • Shooters • Driving game • RTS • Sports games • Turn-based strategy

  43. TBS Game AI • Similar to RTS AI • Timing • AI at disadvantage • Player assistance • Automation of repetitive tasks • Automation of decision-making

  44. Exercise

  45. SOA Gameplay Based on AI • Teaching Characters • Flocking / Herding • On horizon • PCG / Content authoring • Emergent narrative • Social physics

  46. Teaching Characters Games • Primary Example: Black and White • Characters learn under supervision of player • Need representations of actions, world • (fight enemy sword) or (throw rock) or (throw enemy rock) • Characters need to associate actions with context

  47. Teaching Characters Games • Learning Mechanism • Artificial Neural Networks • Strong supervision = Observations • Weak supervision = Player feedback • Other approaches: Decision trees, reinforcement learning, naïve Bayes

  48. Teaching Characters Games • If we “slap” a character for eating rocks and eating poisonous mushrooms, what have we really taught the character?

  49. Teaching Characters Games • If we “slap” a character for eating rocks and eating poisonous mushrooms, what have we really taught the character? • Instincts

  50. Flocking/Herding Games • Example: Pikmingames, HerdyGerdy • P: https://www.youtube.com/watch?v=AorSg8wJmVs • HG: https://www.youtube.com/watch?v=SP24_EYuKJE • FSMs or Decision trees • Simple steering behaviors • Typically multiple species • Ecosystem / food chain • Higher up == simpler behavior; lower == group

More Related