Skip to content

Add Graphics to the Match3 env #4627

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

Merged
merged 74 commits into from
Nov 10, 2020
Merged

Add Graphics to the Match3 env #4627

merged 74 commits into from
Nov 10, 2020

Conversation

Hunter-Unity
Copy link
Contributor

@Hunter-Unity Hunter-Unity commented Nov 6, 2020

Proposed change(s)

Adds Graphics to the M3 env. Spawns gameobject "tiles" in game mode. Added image to the Match3 docs.

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments


void OnDrawGizmos()
{
// TODO replace Gizmos for drawing the game state with proper GameObjects and animations.
var cubeSize = .5f;
var cubeSpacing = .75f;
var matchedWireframeSize = .5f * (cubeSize + cubeSpacing);
var matchedWireframeSize = .5f * (cubeSize + CubeSpacing);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we even need the gizmos code anymore?

Copy link
Contributor

Choose a reason for hiding this comment

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

Even if we want to keep it around, you can remove the TODO above :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

changed: removed the todo. also, the gizmos still show some of the debug features you made. there's still value there so i'd say we can leave for now

Copy link
Contributor

@chriselion chriselion left a comment

Choose a reason for hiding this comment

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

Looks good.

Is there a reason that there's both
Project/Assets/ML-Agents/Examples/Match3/Prefabs/FBX/Match.fbx
Project/Assets/ML-Agents/Examples/Match3/Prefabs/FBX/3.fbx
? Did "Match 3" get turned into two files?

@Hunter-Unity
Copy link
Contributor Author

Looks good.

Is there a reason that there's both
Project/Assets/ML-Agents/Examples/Match3/Prefabs/FBX/Match.fbx
Project/Assets/ML-Agents/Examples/Match3/Prefabs/FBX/3.fbx
? Did "Match 3" get turned into two files?

i brought them in as 3 separate meshes so i could independently scale the 3 so this was intended

@Hunter-Unity Hunter-Unity merged commit b2f58ba into master Nov 10, 2020
@delete-merged-branch delete-merged-branch bot deleted the hh/develop/m3-graphics-m branch November 10, 2020 00:12
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants