Re:Show HN: I added autopilot to the lunar lander game
by szhu on Friday March 10, 2023 @03:28AM
(#35091949)
I really wanted to!
But unfortunately none of the lander's stats are exposed as global variables, so the only way I could do make the autopilot was by modifying the existing code. (My commits are actually broken down exactly like this: a commit to expose the necessary variables globally, and another to actually add the autopilot.)
I would also love to be able to play it in the original game though, so I made a PR! I think it would be cool for it to be able to be activated as an easter egg.
But unfortunately none of the lander's stats are exposed as global variables, so the only way I could do make the autopilot was by modifying the existing code. (My commits are actually broken down exactly like this: a commit to expose the necessary variables globally, and another to actually add the autopilot.)
I would also love to be able to play it in the original game though, so I made a PR! I think it would be cool for it to be able to be activated as an easter egg.
https://github.com/ehmorris/lunar-lander/pull/7