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

Start of apples #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Start of apples #11

wants to merge 2 commits into from

Conversation

alilee
Copy link
Owner

@alilee alilee commented Jul 24, 2022

No description provided.

src/board.rs Outdated Show resolved Hide resolved
Board { limit: uvec2(15, 8) }
Board {
limit: uvec2(15, 8),
taken: HashSet::new(),
Copy link
Owner Author

Choose a reason for hiding this comment

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

We'll eventually need to know what is at the location though.

#[derive(Component)]
pub struct Apple;

fn add_apple(mut commands: Commands, mut board: ResMut<Board>) {
Copy link
Owner Author

Choose a reason for hiding this comment

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

This is the major design decision. How much game state/knowledge should be encapsulated in Board vs. the ECS?

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.

1 participant