본문 바로가기
KERD
논문KCI 등재

A Research on Machine Learning Agent in Rogue-like game

0

조회

0

다운로드

3

인용

0

참고문헌

키워드

초록

Collecting large amounts of data in the real world is expensive and has clear limitations. Simulation-generated environments, on the other hand, offer the opportunity to efficiently generate the necessary data and to try different things easily and quickly. In this research, we utilized one of the tools that addresses these challenges, by the Unity Machine Learning tool, to study an efficient automation model that responds to the characteristics of the rogue-like genre. For testing purposes, we implemented a simple game, implanted an agent into the main character of the game, and fed the agent with code to shoot and avoid hostile. The implemented ML Agent successfully recognized the hostile targets and responded by shooting and dodging them. However, instead of learning to prioritize the hostile targets over time by reinforcing itself and shooting the high-risk targets first, it consistently fired in only one of the 360-degree directions given to it at the beginning, which we didn’t expected, so we improved the code. By utilizing the RayPerceptionSensor-Component2D element to directly feed the agent's sensors with information about hostile targets, we found that the agent was able to utilize its ray sensor to detect them and make much more precise aimed shots. In fact, it outperformed the original model by an average of 3.81x, proving that Unity ML Agentcan collect data through reinforcement learning in the roguelike genre.

Abstract

Collecting large amounts of data in the real world is expensive and has clear limitations. Simulation-generated environments, on the other hand, offer the opportunity to efficiently generate the necessary data and to try different things easily and quickly. In this research, we utilized one of the tools that addresses these challenges, by the Unity Machine Learning tool, to study an efficient automation model that responds to the characteristics of the rogue-like genre. For testing purposes, we implemented a simple game, implanted an agent into the main character of the game, and fed the agent with code to shoot and avoid hostile. The implemented ML Agent successfully recognized the hostile targets and responded by shooting and dodging them. However, instead of learning to prioritize the hostile targets over time by reinforcing itself and shooting the high-risk targets first, it consistently fired in only one of the 360-degree directions given to it at the beginning, which we didn’t expected, so we improved the code. By utilizing the RayPerceptionSensor-Component2D element to directly feed the agent's sensors with information about hostile targets, we found that the agent was able to utilize its ray sensor to detect them and make much more precise aimed shots. In fact, it outperformed the original model by an average of 3.81x, proving that Unity ML Agentcan collect data through reinforcement learning in the roguelike genre.

참고문헌 (13)

  1. Young Suk LEE, "A Study on the Convergence for the Nectar Ritual Painting of Buddhist Worldview and Game Elements of Rogue-like", Journal of Korea Game Society, 20(2), pp.35~44 (2020)
  2. Sang Hun SONG, "Reinforcement Learning in a 2D Rogue-lite Game using Unity ML-Agents" (2023), Soonchunhyang University
  3. Ho Bin CHOI, "Design and Implementation of Reinforcement Learning Environment Using Unity 3D based ML-Agents Toolkit", 2019 Spring Meeting Proceedings, 25(1) (2019)
  4. Jin Kyoung AHN, "Mechanism of Permanent Death in Rogue-like Games", Journal of Korea Game Society, 16(1), pp.33~42 (2016)
  5. Jun Ho KIM, "A Study on the Influence of Platform Design in Level Design by utilizing Multi-agent Reinforcement Learning", Korean Society for Computer Game, 34(4), pp.23~29 (2023)
  6. Deok Hyung KIM, "Performance Analysis of Target Tracking AI based on UnityML-Agents", Journal of KIIT, 19(12), pp.19~26 (2021)
  7. Seok Ho HAN, "Implementation of Target Object Tracking Method using Unity ML-Agent Toolkit", Journal of the Semiconductor & Display Technology, 21(3), pp.110~113 (2022)
  8. "Namespace Unity.MLAgents"[URL]
  9. "Unity ML-Agents Toolkit"[URL]
  10. "Training Configuration File"[URL]
  11. "Using TensorBoard to Observe Training"[URL]
  12. "Github"[URL]
  13. "Run Screen"[URL]

관련 논문AI추천

이 간행물의 다른 논문 (15건)