Skip to content

rocket-boots/starship-the-next-generation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starship: The Next Generation

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();

To Do

Phase 1 (Done!)

  • 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

Phase 2

  • Straight hallway connections
  • Some asymmetry
  • Diagonal hallway connections
  • Doors and door-placement algorithm
  • TNG fonts for demo page
  • Square fonts for textbox Doesn't work
  • Better page styling

Phase 3

  • Engine
  • Battery
  • Reactor parts
  • Antenna
  • Part categories
  • Ship stats

Phase 4

  • UI for params
  • Param-based rules
    • Speed
    • Resources
    • Style/Flair
    • Safety
  • More Generation rules: ?
  • Compactness

Phase 5

  • Output as JSON
  • Display as canvas
  • Toggle display types
  • Add star field bg
  • Display as svg?
  • Documentation

Contributing

Just submit pull requests, issues, etc.

The code is free & open-source (MIT).

About

Procedural starship generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published