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

feat: Children as argument to FlameGame #1680

Merged
merged 12 commits into from
Jun 1, 2022

Conversation

spydon
Copy link
Member

@spydon spydon commented May 29, 2022

Description

Since we have already added children as an argument to Component, this adds it to the FlameGame.

Checklist

  • The title of my PR starts with a Conventional Commit prefix (fix:, feat:, docs: etc).
  • I have read the Contributor Guide and followed the process outlined for submitting PRs.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples.

Breaking Change

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

Related Issues

@spydon spydon requested a review from a team May 29, 2022 21:21
doc/flame/components.md Outdated Show resolved Hide resolved
doc/flame/components.md Outdated Show resolved Hide resolved
packages/flame/lib/src/game/flame_game.dart Outdated Show resolved Hide resolved
packages/flame/lib/src/game/flame_game.dart Outdated Show resolved Hide resolved
Copy link
Member

@erickzanardo erickzanardo left a comment

Choose a reason for hiding this comment

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

This is a small, but an incredible improvement IMO, this will help bring Flame to a more declarative pattern. I wonder if we could create a game that doesn't even require the player to extend from FlameGame!

I think it would be nice to briefly mention this new attribute on the docs.

@spydon
Copy link
Member Author

spydon commented Jun 1, 2022

I think it would be nice to briefly mention this new attribute on the docs.

I do mention it in the docs. 🙂

@spydon spydon merged commit db336c0 into main Jun 1, 2022
@spydon spydon deleted the spydon.flame-game-children-argument branch June 1, 2022 20:59
st-pasha pushed a commit to st-pasha/flame that referenced this pull request Jun 3, 2022
Since we have already added children as an argument to Component, this adds it to the FlameGame.
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.

4 participants