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

Add basic example of a custom update loop #799

Merged
merged 1 commit into from
Nov 9, 2020
Merged

Conversation

easynam
Copy link
Contributor

@easynam easynam commented Nov 6, 2020

There currently aren't any examples of how to do this aside from the actual implementations in schedule_runner and the bevy_winit create, and quite a few people have asked about it on the discord.

This adds a basic example that reads input from stdin and updates the app once for each line.

@karroffel karroffel added C-Feature A new feature, making something new possible C-Examples An addition or correction to our examples labels Nov 6, 2020
@Plecra
Copy link
Contributor

Plecra commented Nov 6, 2020

Might a bevy::app::Events be a more appropriate way to present the user input?

@cart
Copy link
Member

cart commented Nov 7, 2020

@Plecra I think for a more serious implementation events might be better, but i kind of like the minimalism of this example

I dig this. I think its good to go after a rebase (sorry about that ... i accidentally broke builds on the master branch. but its fixed now).

@cart cart merged commit 31a433b into bevyengine:master Nov 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Examples An addition or correction to our examples C-Feature A new feature, making something new possible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants