How justy41/pixpart works
PixPart is a desktop pixel-art particle visualizer and generator. The user edits emitter settings in the UI; the live simulation advances particles, which are rendered with registered textures. The app also saves and loads emitter configurations as JSON and can simulate fixed-step frames for spritesheet export. The graph follows calls shown in Program.cs and sampled modules; README documents the product purpose and JSON workflow, while detailed behavior for some peripheral features is not inferred.
Main entry points: Program.cs App loop · Simulation.cs Simulation · ParticleRenderer.cs Particle renderer · JsonExporter.cs JSON config I/O
Components 16
Application
- App loop
Program.cs - Emitter editor
src/Editor/Editorui.cs - File selection
Particle simulation
- Emitter settings
src/Core/EmitterConfig.cs - Simulation
src/Core/Simulation.cs - Particle state
src/Core/Particle.cs - Particle pool
src/Core/ParticlePool.cs - Window bounds
src/Core/Utils.cs
Rendering and textures
- Particle renderer
src/Rendering/ParticleRenderer.cs - Texture library
src/Textures/TextureLibrary.cs - Offscreen capture
src/Rendering/OffscreenRenderer.cs
Export
- JSON config I/O
src/Export/JsonExporter.cs - Spritesheet assembly
src/Export/SpritesheetExporter.cs - JSON file
- Spritesheet image
Other components
- User
Connections 21
- User → Emitter editor: edits settings
src/Editor/Editorui.cs - App loop → Emitter editor: draws UI
Program.cs - Emitter editor → Emitter settings: mutates
src/Editor/Editorui.cs - App loop → Simulation: updates
Program.cs - Simulation → Emitter settings: reads settings
src/Core/Simulation.cs - Simulation → Particle pool: spawns and updates
src/Core/Simulation.cs - Particle pool → Particle state: stores
src/Core/ParticlePool.cs - Simulation → Window bounds: checks bounds
src/Core/Simulation.cs - App loop → Particle renderer: draws particles
Program.cs - Particle renderer → Texture library: gets textures
src/Rendering/ParticleRenderer.cs - Particle renderer → Particle state: renders state
src/Rendering/ParticleRenderer.cs - App loop → Texture library: loads textures
Program.cs - App loop → JSON config I/O: saves and loads
Program.cs - JSON config I/O → Emitter settings: serializes config
src/Export/JsonExporter.cs - App loop → File selection: selects file
Program.cs - JSON config I/O → JSON file: reads and writes
src/Export/JsonExporter.cs - App loop → Offscreen capture: captures frames
Program.cs - Offscreen capture → Particle renderer: invokes draw
Program.cs - App loop → Spritesheet assembly: assembles frames
Program.cs - Spritesheet assembly → Spritesheet image: exports image
src/Export/SpritesheetExporter.cs - User → App loop: runs app