How lilianzzz/pixelshipgenerator works
Pixel Ship Generator is a Pygame application for interactively generating, viewing, customizing, and saving pixel-art ships. The principal workflow starts at the title screen, enters the generator, and creates ships from seeded pixel maps, frames, and placed components; users can then select, mirror, recolor, and save them. The graph preserves the documented customization and major generation subsystems. Some relationships rely on SOURCE INDEX references rather than complete excerpts, so unsampled internals are not expanded beyond those references.
Main entry points: ship.py Ship Assembly · generator.py Generator Controls · main.py App Loop · palette.py Component Palette
Components 21
Application UI
- App Loop
data/main.py - Title and Instructions
data/title_screen.py - Generator Controls
data/generator.py - UI State Base
data/state.py - Button
data/button.py
Ship Generation
- Ship Assembly
data/ship/ship.py
Geometry and Components
- Frame Layout
data/ship/frame.py - Ship Spine
data/ship/spine.py - Component Placement
data/ship/component_placer.py - Ship Connections
data/ship/ship_connector.py - Component Base
data/ship/components/component.py - Hull Shapes
data/ship/components/basic_hull.py - Angle Shapes
data/ship/components/angles.py - Curve Shapes
data/ship/components/curves.py - Compound Shapes
data/ship/components/compound_components.py
Color and Mapping
- Pixel Map
data/ship/pixel_map.py - Ship Mirroring
data/ship/mirror.py - Component Palette
data/ship/palette.py - Ship Colors
data/ship/color_gen.py - Outline Scanning
data/ship/scan_outline.py
Other components
- Player
Connections 31
- Player → App Loop: uses
data/main.py - App Loop → Title and Instructions: starts at
data/main.py - App Loop → Generator Controls: opens
data/main.py - App Loop → UI State Base: updates and draws
data/main.py - Title and Instructions → UI State Base: extends
data/title_screen.py - Title and Instructions → App Loop: starts or resumes
data/title_screen.py - Generator Controls → UI State Base: extends
data/generator.py - Generator Controls → Button: creates and checks
data/generator.py - Generator Controls → Ship Assembly: generates
data/generator.py - Generator Controls → Ship Mirroring: applies
data/generator.py - Generator Controls → App Loop: opens instructions
data/generator.py - Ship Assembly → Pixel Map: inherits
data/ship/ship.py - Ship Assembly → Frame Layout: creates
data/ship/ship.py - Ship Assembly → Component Palette: creates
data/ship/ship.py - Ship Assembly → Ship Mirroring: selects mirror
data/ship/ship.py - Ship Assembly → Component Placement: uses
data/ship/ship.py - Ship Assembly → Ship Connections: uses
data/ship/ship.py - Ship Assembly → Ship Colors: uses
data/ship/ship.py - Frame Layout → Ship Spine: creates
data/ship/frame.py - Component Base → Pixel Map: inherits
data/ship/components/component.py - Hull Shapes → Component Base: extends
data/ship/components/basic_hull.py - Angle Shapes → Component Base: extends
data/ship/components/angles.py - Curve Shapes → Component Base: extends
data/ship/components/curves.py - Compound Shapes → Component Base: uses
data/ship/components/compound_components.py - Compound Shapes → Angle Shapes: uses
data/ship/components/compound_components.py - Component Palette → Hull Shapes: selects shapes
data/ship/palette.py - Component Palette → Angle Shapes: selects shapes
data/ship/palette.py - Component Palette → Curve Shapes: selects shapes
data/ship/palette.py - Component Palette → Compound Shapes: selects shapes
data/ship/palette.py - Ship Mirroring → Pixel Map: transforms
data/ship/mirror.py - Outline Scanning → Pixel Map: scans
data/ship/scan_outline.py