-
Notifications
You must be signed in to change notification settings - Fork 35
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
Root state and simple menu with credits #16
Conversation
I'm fine with merging it and then iterating on that. Code looks tidy :) |
More changes than I originally planned, requesting re-review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! Got some nitpicks, but I'd prefer to iterate on that once it's merged so that we have a basic foundation :)
|
||
use bevy::{color::palettes::tailwind, prelude::*}; | ||
|
||
pub use widgets::*; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO it would be better to pub mod widgets
instead. But that's just my opinion, and can be discussed after this PR is merged.
Credits, | ||
} | ||
|
||
fn setup(mut commands: Commands) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Non-specific system names like "set up" and "update" are confusing, and encourage putting everything in one system instead of splitting into multiple systems. Fine to keep it this way for this PR, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, but overly specific names without context would be weird too. Adding some actual game logic would show both sides
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a comment for game logic, hope we can iterate on this further though
Add `dev` and `dev_native` features
Co-authored-by: Jan Hohenheim <[email protected]>
Co-authored-by: Ben Frankel <[email protected]>
@benfrankel merging this since I think your concerns have been addressed and you mentioned that you are fine with resolving some nitpicks with follow-up PRs. Hope you're alright with that :) |
Fixes #3, #9
Partially: #4
Based on https://github.com/MiniaczQ/bevy-substate-based-ui
This is very experimental, feel free to propose large changes to the structure