Skip to content

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

Closed

Description

@alice-i-cecile

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.

Activity

  1. added
    C-DocsAn addition or correction to our documentation
    D-TrivialNice and easy! A great choice to get started with Bevy
    C-ExamplesAn addition or correction to our examples
    A-TimeInvolves time keeping and reporting
    on Oct 16, 2023
  2. meepleek commented on Oct 17, 2023

    @meepleek
    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?

  3. alice-i-cecile commented on Oct 17, 2023

    @alice-i-cecile
    MemberAuthor

    Yes please, that sounds great!

  4. meepleek commented on Oct 18, 2023

    @meepleek
    Contributor

    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?

  5. alice-i-cecile commented on Oct 18, 2023

    @alice-i-cecile
    MemberAuthor

    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.

  6. meepleek commented on Oct 19, 2023

    @meepleek
    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

  7. added a commit that references this issue on Oct 28, 2023
    0824812
  8. added a commit that references this issue on Nov 6, 2023
    a999407
  9. added a commit that references this issue on Jan 9, 2024
    6c6c17d
  10. WayneKeenan commented on Jun 6, 2025

    @WayneKeenan

    Are there any recent examples, existing or planned, that demonstrate using virtual time with rapier physics?
    thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TimeInvolves time keeping and reportingC-DocsAn addition or correction to our documentationC-ExamplesAn addition or correction to our examplesD-TrivialNice and easy! A great choice to get started with Bevy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions