Godot RL Agents Activity

In this section, you will learn how to create a custom environment in the Godot Game Engine and then implement an AI controller that learns to play with Deep Reinforcement Learning. The example game we create today is simple, but shows off many of the features of the Godot Engine and the Godot RL Agents library. You can then dive into the examples for more complex environments and behaviors.

National Standards Alignment

ccss math HSS-ID
csta 3A-AP-13 3A-AP-14 3A-AP-15 3A-AP-21 3A-CS-01 3A-CS-02 3A-CS-03 3A-IC-24 3A-IC-25 3A-IC-26 3A-NI-04 3A-NI-05 3A-NI-06
iste ISTE-1c ISTE-1d ISTE-2a ISTE-2b ISTE-3a ISTE-3b ISTE-4a ISTE-4b ISTE-4c ISTE-4d ISTE-5a ISTE-5b ISTE-6a ISTE-6b ISTE-7a ISTE-7b
ngss HS-ESS3-1 HS-ESS3-3 HS-ESS3-4

OVERVIEW

Activity Overview:

In this section, you will learn how to create a custom environment in the Godot Game Engine and then implement an AI controller that learns to play with Deep Reinforcement Learning. The example game we create today is simple, but shows off many of the features of the Godot Engine and the Godot RL Agents library. You can then dive into the examples for more complex environments and behaviors.

Meta description

  • Subject Area: Computer Science, Mathematics, Science, Technology, Engineering
  • Grade Level : 9-12
  • Computer Science Domains:
    • Computing Systems
    • Networks and The Internet
    • Algorithms and Programming
    • Impacts of Computing
  • Computer Science Principles:
    • Fostering an Inclusive Computing Culture
    • Collaborating Around Computing
    • Recognizing and Defining Computational Problems
    • Developing and Using Abstractions
    • Creating Computational Artifacts
    • Testing and Refining Computational Artifacts
    • Communicating About Computing
  • Materials:
    • Website, lab computer with ubuntu installed

Lesson Plan

Overview

In this section, you will learn how to create a custom environment in the Godot Game Engine and then implement an AI controller that learns to play with Deep Reinforcement Learning. The example game we create today is simple, but shows off many of the features of the Godot Engine and the Godot RL Agents library. You can then dive into the examples for more complex environments and behaviors.

ASSESSMENT PRE/POST-TEST

Were you able to get godot_rl agents working with ringpong?

OBJECTIVES

Install godot_rl agents, adjust parameters, train models

CATCH/HOOK

Godot Engine is a feature-packed, cross-platform game engine designed to create 2D and 3D games from a unified interface. It provides a comprehensive set of common tools, so users can focus on making games without having to reinvent the wheel. Games can be exported in one click to a number of platforms, including the major desktop platforms (Linux, macOS, Windows) as well as mobile (Android, iOS) and web-based (HTML5) platforms.

ACTIVITY INSTRUCTIONS

Full configuration of rl setup, relatively involved setup that even includes bug fixes.

Supplements

Any items in this section are the property & under the license of their respective owners.

REVIEW

Class discussion on our results, experiences, and findings.

STANDARDS

TypeListing
CS DomainsComputing Systems, Networks and The Internet, Algorithms and Programming, Impacts of Computing
CS PrinciplesFostering an Inclusive Computing Culture, Collaborating Around Computing, Recognizing and Defining Computational Problems, Developing and Using Abstractions, Creating Computational Artifacts, Testing and Refining Computational Artifacts, Communicating About Computing