Skip to content

Tooling: keep the running scene across Go rebuilds in nsgo dev #363

Closed

Description

@houko

Context

Part of #167.

game#168 hot-reloads assets only; nsgo dev restarts the whole app.

Scope

Before nsgo dev restarts on a Go change, snapshot the scene id, the world (game#141 or a scene Snapshot/Restore hook) and the loop clock into the dev session; on start in a dev build restore it if the schema matches, otherwise start fresh and log why.

Acceptance

  • Editing a Go function mid-level on macOS brings the game back in the same scene with the player at the same position
  • An incompatible struct change starts fresh and logs the reason
  • Release builds link none of it
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions