A procedural starship generator
Try it out: https://rocket-boots.github.io/starship-the-next-generation/
Use it in your project:
- Command line:
npm install --save github:rocket-boots/starship-the-next-generation
- In your JavaScript:
const ship = generator.generate({ seed: 1234567 });
const shipText = ship.getText();
- Basic Parts types: wall, floor
- Generate rectangle
- UI for button
- Pseudo-random prng
- Generate random central rectangle as "body"
- Generate random mirrored rectangles
- Display in textbox
- Generation seed
- Straight hallway connections
- Some asymmetry
- Diagonal hallway connections
- Doors and door-placement algorithm
- TNG fonts for demo page
-
Square fonts for textboxDoesn't work - Better page styling
- Engine
- Battery
- Reactor parts
- Antenna
- Part categories
- Ship stats
- UI for params
- Param-based rules
- Speed
- Resources
- Style/Flair
- Safety
- More Generation rules: ?
- Compactness
- Output as JSON
- Display as canvas
- Toggle display types
- Add star field bg
- Display as svg?
- Documentation
Just submit pull requests, issues, etc.
The code is free & open-source (MIT).