A solar system simulation in which different types of ships interact. I envisioned this project as a sort of screen-saver, with the goal of familiarizing myself with WGPU at a very basic level. Thanks to Benjamin Hansen for this amazing WGPU tutorial: https://sotrh.github.io/learn-wgpu/.
Mining |
Lands on resource-rich planets to mine ore. When its cargo hold is full, it detaches and seeks out the closest station to deposit. The process then repeats with the mining ship returning to the ore planet. |
Trader |
These ships randomly choose a station to be their destination. If the station they last visited has more resources than their target, they fill their cargo hold, bringing valuable ore to the undersupplied destination. |
Pirate |
Each pirate ship patrols its own territory, seeking out traders with cargo. Unlike the other two ship types, pirates can’t accelerate, and must rely on a jamming weapon that momentarily kills their prey’s engines. This allows them to close the gap and steal their cargo using short range tractor beams. Traders are usually free to go after having their cargo seized, but raids can also be fatal. |