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

Demonstrate how to use the Time API to effectively pause and resume your game #10133

Closed
alice-i-cecile opened this issue Oct 16, 2023 · 5 comments · Fixed by #10204
Closed

Demonstrate how to use the Time API to effectively pause and resume your game #10133

alice-i-cecile opened this issue Oct 16, 2023 · 5 comments · Fixed by #10204
Labels
A-Time Involves time keeping and reporting C-Docs An addition or correction to our documentation C-Examples An addition or correction to our examples D-Trivial Nice and easy! A great choice to get started with Bevy

Comments

@alice-i-cecile
Copy link
Member

How can Bevy's documentation be improved?

#8964 introduced several new APIs to pause, resume and slow down time. In the many games, this will be an effective way to pause the game! No need for run conditions or states.

However, this could use its own example under bevy_time.

@alice-i-cecile alice-i-cecile added C-Docs An addition or correction to our documentation D-Trivial Nice and easy! A great choice to get started with Bevy C-Examples An addition or correction to our examples A-Time Involves time keeping and reporting labels Oct 16, 2023
@SecretPocketCat
Copy link
Contributor

Can I take this?
I'm thinking a sprite moving left to right with buttons and keybindings to pause/resume and speed up/down time should cover it and UI showing the fixed and virtual times. Does that sound good?

@alice-i-cecile
Copy link
Member Author

Yes please, that sounds great!

@SecretPocketCat
Copy link
Contributor

SecretPocketCat commented Oct 18, 2023

When first looking at this I missed this should go in bevy_time. Does the outlined example makes sense in that crate? Shouldn't that be swapped with the current ecs/time example (which just logs stuff) or replace it?

@alice-i-cecile
Copy link
Member Author

Oh, I meant to say, this should go in the time folder of the main bevy examples! Examples that are specific to the bevy_time crate will be hard to discover and not really that useful.

@SecretPocketCat
Copy link
Contributor

I've landed on this, but I still need to properly document the example. I skipped the buttons 'cause that would add too much noise.

image

github-merge-queue bot pushed a commit that referenced this issue Oct 28, 2023
# Objective

- Fixes #10133 

## Solution

- Add a new example that focuses on using `Virtual` time

## Changelog

### Added

- new `virtual_time` example

### Changed

- moved `time` & `timers` examples to the new `examples/time` folder
ameknite pushed a commit to ameknite/bevy that referenced this issue Nov 6, 2023
# Objective

- Fixes bevyengine#10133 

## Solution

- Add a new example that focuses on using `Virtual` time

## Changelog

### Added

- new `virtual_time` example

### Changed

- moved `time` & `timers` examples to the new `examples/time` folder
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this issue Jan 9, 2024
# Objective

- Fixes bevyengine#10133 

## Solution

- Add a new example that focuses on using `Virtual` time

## Changelog

### Added

- new `virtual_time` example

### Changed

- moved `time` & `timers` examples to the new `examples/time` folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Time Involves time keeping and reporting C-Docs An addition or correction to our documentation C-Examples An addition or correction to our examples D-Trivial Nice and easy! A great choice to get started with Bevy
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants