Skip to content

Add Godot particle effect pooling#70

Open
YfengJ wants to merge 2 commits into
Bitcoindefi:mainfrom
YfengJ:codex/godot-particles-46
Open

Add Godot particle effect pooling#70
YfengJ wants to merge 2 commits into
Bitcoindefi:mainfrom
YfengJ:codex/godot-particles-46

Conversation

@YfengJ

@YfengJ YfengJ commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a fixed-size ParticlePool autoload for reusable GPUParticles2D instances
  • add a ParticleManager autoload that listens to EventBus gameplay signals and dispatches combat, city build, XP, level-up, resource discovery, and flag-capture effects
  • add six one-shot particle scenes capped at 200 particles and 1s lifetime for web performance
  • add EventBus wrappers for XP gain and resource discovery particle triggers
  • add a Node-based Godot particle contract test to guard autoload registration, EventBus wiring, and particle budgets

Closes #46

Validation

  • node --test godot/particle_fx_contract.test.mjs
  • node --test godot/web/stellar_bridge.test.js
  • git diff --check

Not run locally: make godot-export because Godot 4 is not installed in this local environment. The PR keeps the existing Godot Web workflow as the export validator.

@sonarqubecloud

Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Godot: sistema de partículas (combate, construcción, XP, captura)

1 participant