Skip to content

Phantom Child when switching game state #2

@alycda

Description

@alycda

I thought I would be clever with nested gamestates and found that my idea would not work as expected (can't do GameState::Game(_) to match all variants of an enum.

I added a return to menu keypress and found that the player remains on screen even though it is scoped. see this forked branch: alycda@2014360

rustc --version
rustc 1.85.0 (4d91de4e4 2025-02-17)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions