Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

human + rgb_array rendering modes #12

Merged
merged 3 commits into from
Nov 7, 2023
Merged

Conversation

umutucak
Copy link
Collaborator

@umutucak umutucak commented Nov 7, 2023

I've implemented pygame visualization using assets from MO-Gymnasium's Resource Gathering.

"human" and "rgb_array" modes

@umutucak umutucak requested a review from ffelten November 7, 2023 12:40
@umutucak
Copy link
Collaborator Author

umutucak commented Nov 7, 2023

Screen.Recording.2023-11-07.at.13.11.34.mov

@umutucak umutucak requested a review from rradules November 7, 2023 12:47
Copy link
Collaborator

@ffelten ffelten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


# items
elif int(self.env_map[i, j]) > 2:
ind = int(self.env_map[i, j]) - 3 # item 3 will have 0th index
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no restriction imposed on the item values in the map encoding, except > 2. You can use self.item_dict to get the item's index.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

@umutucak umutucak merged commit cc826df into main Nov 7, 2023
5 checks passed
@umutucak umutucak deleted the rendering/item-gathering branch November 15, 2023 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants