An alternate way to view the Minigrid environment using animations and sprites. Intended to be used as a teaching tool for kids to promote more engagment and interest in Renforcemnt Learning.
- About the Project
- Features
- Getting Started
- Usage
- Architecture
- Roadmap
- License
- Contact
- Acknowledgements
Designed to engage students in learning about AI and reinforcement learning specifically, Minigrid with Sprites adds an entirely new rendering manager to Minigrid. This rendering manager utilizes Pyglet along with tons of custom logic to create a beautifully rendered environment for any Minigrid environment.
- ✨ Sprites and Animations: Using pyglet Minigrid environmnets can be rendered with any sprite.
- ✨ Seperate Rendering Logic: The rendering logic is now seperated and much easier to customize.
# Clone the repository
git clone https://github.com/NSChristopher/Minigrid_with_Sprites.git
# Navigate into the project directory
cd repository
# Install dependencies
pip install -r requirements.txt
Import the PrettyRenderingManager along with the gym and your desired environment.
import gymnasium as gym
from minigrid.envs import LavaGapEnv
from minigrid.rendering.pretty_rendering_manager import PrettyRenderingManager
Pass the new PrettyRenderingManager into the env.
env = LavaGapEnv(render_mode='rgb_array', rendering_manager=PrettyRenderingManager,size=6)
Noah Christopher - noah.dev@outlook.com
Project Link: Minigrid_with_Sprites