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

Update smax_env.py #98

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Update smax_env.py #98

merged 1 commit into from
Jun 13, 2024

Conversation

syrkis
Copy link
Contributor

@syrkis syrkis commented Jun 12, 2024

Start positions are currently hard-coded to assume that the map_width and height is 32. If the map width is set to 128, the units will this start in the top-left corner.

Make team_0 and team_1 start y coordinates halfway up the map_height (instead of hard-coded 16). The x coordinate will be a fourth of the map_width, and three fourths of the map_width, respectively.

Start positions are currently hard-coded to assume that the map_width and height is 32. If the map width is set to 128, the units will this start in the top-left corner.

Make team_0 and team_1 start y coordinates halfway up the map_height (instead of hard-coded 16). The x coordinate will be a fourth of the map_width, and three fourth of the map_width respectively.
@amacrutherford amacrutherford requested a review from benellis3 June 13, 2024 11:58
@benellis3
Copy link
Contributor

Thank you very much this is a good spot!

@amacrutherford amacrutherford merged commit ab3909c into FLAIROx:main Jun 13, 2024
1 check passed
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