8000 Add EventBus and GameState Skeleton · Issue #3 · Mnehmos/corehold · GitHub
[go: up one dir, main page]

Skip to content

Add EventBus and GameState Skeleton #3

Open

Description

@Mnehmos

Goal

Create basic global coordination without hard coupling all nodes.

Tasks

  • Add EventBus.gd
  • Add GameState.gd
  • Add RunState.gd
  • Define basic signals for run_started, run_ended, enemy_killed, tower_damaged, wave_started

Acceptance Criteria

  • Signals can be emitted and received
  • Game scene uses signals for at least one event
  • No major scene directly depends on unrelated UI internals

Activity

  1. added this to the 0-foundation milestone on May 3, 2026
  2. added
    type:infraInfrastructure and project setup
    sprint:0Sprint 0: Project Setup
    on May 3, 2026
  3. Mnehmos commented on May 3, 2026

    @Mnehmos
    OwnerAuthor

    Issue #3 Verification - EventBus and GameState Skeleton

    Status

    Complete — all skeletons were present in the initial scaffold and are actively consumed.

    Verified

    • EventBus.gd registered as autoload; defines 14 typed signals covering run lifecycle, combat, upgrades, and resource gauges.
    • GameState.gd registered as autoload; tracks persistent cross-run stats (total_salvage, runs_completed, best_wave, best_time, best_salvage) with record_run() method.
    • RunState.gd registered as autoload; tracks per-run state (wave, kills, salvage, time, HP, heat, power, shield, upgrades) with full reset().
    • project.godot has all three autoloads configured.
    • Active usage: Game.gd calls RunState.reset(), EventBus.run_started/ended.emit(), GameState.record_run(). RunSummary.gd reads from RunState.

    Notes

    • No acceptance criteria were provided in the issue body (only '## Goal' header with no content).
    • Verified against the implied scope from the issue title and project architecture docs.
    • All three singletons are production-ready skeletons with typed signals/variables and documented headers.

    PR (related)

    #53 (Issue #2) confirmed these singletons work end-to-end in scene transitions.

  4. Mnehmos commented on May 3, 2026

    @Mnehmos
    OwnerAuthor

    Closing — EventBus, GameState, and RunState skeletons are all present, autoloaded, and actively consumed by the scene flow. No missing pieces.

  5. reopened this on May 3, 2026
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

    sprint:0Sprint 0: Project Setuptype:infraInfrastructure and project setup

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0