Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 4 min read

I built a free browser game where you catch SpaceX Starship with the tower chopsticks

Catch Starship 42 is a free, fan-made browser game. You steer a cartoon Starship into a catch tower and close the chopsticks at the right moment. There are 10 levels. It runs in the browser, with no signup, on a computer

Catch Starship 42 is a free, fan-made browser game. You steer a cartoon Starship into a catch tower and close the chopsticks at the right moment. There are 10 levels. It runs in the browser, with no signup, on a computer or a phone.

Play it here: https://catch42.space

This is a fan-made game. It is not affiliated with, endorsed by, or sponsored by SpaceX or Elon Musk. Starship is a trademark of SpaceX.

Why this game

I wanted something you can open from a link and play in a few seconds. No account, no install, no tutorial wall. You see the tower, you see the ship, and you try to catch it.

The real catch towers make that look easy on a good day. In the game it is not. The ship comes in off-centre, slightly tilted, and a little too fast. You have one chance per ship. A good catch feels like a clunk. A bad one is a boom, and then one more try.

How a round works

On a computer, Left and Right (or A and D) fire the side thrusters. Tap to nudge, hold to burn. Space closes the chopsticks, and holding Space closes them faster. Down or S also closes the arms. M mutes the sound.

On a phone, three buttons sit under the game: left, CATCH, and right. The same idea, just with thumbs.

The world is taller than the screen. A camera follows the ship down from high in the sky, then locks onto the tower before the catch so you can line up the pins with the arms. Early in a descent you are watching a small ship against a lot of sky. Near the tower you are watching the gap.

The 10 levels

Each setting is played twice. The second time is faster.

  1. Day
  2. Day faster
  3. Clouds
  4. Clouds faster
  5. Night
  6. Night faster
  7. Night + clouds
  8. Night + clouds faster
  9. Night + snow
  10. Night + snow faster

On later levels the ship is faster, starts farther off, tilts more, and drifts more. The last pair adds wind gusts on top of the night and snow. Finish all 10 and you get the winner screen.

What counts as a perfect catch

A catch is judged on three things:

  • How centred the ship is
  • How upright it is
  • Whether the chopsticks are fully closed in time

A perfect catch needs all three: the ship centred within 7, tilt within 5 degrees, and the arms fully closed with a gap of 30 or less. Then you get a clunk, a clap, and a cartoon Elon giving a thumbs-up. He also appears on the winner screen.

A perfect catch is not tied to your score. It is about that one arrival.

Anything sloppier can still be a good catch, a late grab, a near miss, or a crash (too early, misaligned, too much tilt). Near misses give a few points and then the ship slips through.

Scoring

A perfect catch scores (1000 + (speed - 150) x 2.5), then a streak multiplier. The multiplier is 1.2 on the second perfect in a row, 1.5 on the third, and 2x from the fourth onward. Ordinary catches score less, around 400 to 700 depending on how tidy they were.

If you perfect every ship, the speed rises on each level, and the multiplier kicks in, the total for a perfect run is 22,110. I have checked that number against the formula. It is not an estimate.

Your best score is saved in the browser, so it is still there if you come back later.

After a crash or after you finish all 10, the end screen has a Share button and a Copy link button, plus a panel for X, Facebook, LinkedIn, WhatsApp and SMS. Copy link copies https://catch42.space. Mid-run, the share text says you made it to that level and asks if someone else can catch it, plus your score. If you caught all 10, it says you caught them all, and asks if someone else can too.

How it is built

The game is vanilla JavaScript, Canvas, and WebAudio. There is no build step, no framework, and no game engine. The live site is a few static files: an HTML page, the game code, the tower drawing code, and a couple of images.

All of the sound is synthesized in the browser: thrusters, the servo of the arms, the clunk, the clap, and the boom. Nothing is streamed from a file.

The tower and chopsticks are drawn in code, with both arms on one shared hinge at the front of a carriage, the way the real catch arms swing in. The ship, the sky, the clouds, the snow, and the night lighting are drawn each frame. A small bit of state (best score and mute) lives in the browser's local storage.

I hosted it on Vercel, on the domain catch42.space. Vercel serves the static files and gives us a place for visitor analytics and a few custom game events: when a run starts, when someone reaches level 3, 5, 8, or 10, when a run ends, when someone finishes all 10, when someone shares a result, and when someone taps the coffee link. Those events help me see what people actually do. I am not using this article to quote visitor numbers.

If you have a go

The first level is meant to teach the timing. Most runs still end early, because the close has to happen as the pins arrive, not when the ship looks close enough. If you want a target, try to beat a perfect run of 22,110. I would love to hear how far you get.

Play here: https://catch42.space

If you like it, there is a Buy me a coffee link on the game page. No pressure. This is a fan game I made for fun, and I hope it is fun for you too.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.