I didn't know about the Single<> constraint when I wrote the fn input_ship_thruster(...) system, so it still manually checks for there being just one single player ship. I could replace this with the Single<> constraint, but that will cause it to silently do nothing when the player ship count is != 1.
Pro: Shorter code that does basically the same thing
Con: invalid world setup does not cause a program panic
I didn't know about the `Single<>` constraint when I wrote the `fn input_ship_thruster(...)` system, so it still manually checks for there being just one single player ship. I could replace this with the `Single<>` constraint, but that will cause it to silently do nothing when the player ship count is != 1.
- Pro: Shorter code that does basically the same thing
- Con: invalid world setup does not cause a program panic
robert
added this to the Finish the Game project 2025-07-29 09:29:15 -07:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
I didn't know about the
Single<>constraint when I wrote thefn input_ship_thruster(...)system, so it still manually checks for there being just one single player ship. I could replace this with theSingle<>constraint, but that will cause it to silently do nothing when the player ship count is != 1.