Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Showcase Training an AI to shoot and dodge in a 2 Player 2D Game with Self Play! (A devlog/tutorial)

Discussion in 'ML-Agents' started by avbiswas, Apr 11, 2023.

  1. avbiswas


    Jun 10, 2019
    Hey guys! Wanted to share my new devlog about training a competitive AI environment with Self-Play with Unity’s ML Agents. The game is a 2D symmetrical environment where the character can shoot bullets and dodge the opponent’s attacks by jumping, crouching, dashing, and moving!

    I tried to play it myself, but I need more practice. (To be fair, the AI did play a million more games than me) I get lucky and hit it sometimes, but I die like 7 times for one kill. If you guys are interested in this space, do check out this devlog! Leave a like/comment for feedback (that helps the channel).

    Here is the link: