Live data from Hacker News

Starfling: A one-tap endless orbital slingshot game in a single HTML file

playstarfling.com

111–120 of 163 posts

Re: Starfling: A one-tap endless orbital slingshot game in a single HTML file

#111

Earlier quoted context omitted.

Tampermokey userscript -- to launch and restart to give up ```javascript // ==UserScript== // @name StarFling Spacebar // @namespace https://playstarfling.com/ // @version 2026-04-11 // @description Spacebar to launch and restart StarFling // @author Claude Code // @match https://playstarfling.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=playstarfling.com // @grant none // @run-at document-idle // =…

I got so annoyed I fixed the annoyances. https://orbitup.surge.sh/ - FPS tweak to fix variable speed - Can bounce - Life points instead of sudden death - Levels - A few effects - Better adjusted difficulty

No attribution to the original game?

Re: Starfling: A one-tap endless orbital slingshot game in a single HTML file

#112
post #111

Earlier quoted context omitted.

I got so annoyed I fixed the annoyances. https://orbitup.surge.sh/ - FPS tweak to fix variable speed - Can bounce - Life points instead of sudden death - Levels - A few effects - Better adjusted difficulty

No attribution to the original game?

yes, I should. In case someone outside this thread comes across that 'fork'.

Edit: I added due credit. thanks for pointing that out.

Re: Starfling: A one-tap endless orbital slingshot game in a single HTML file

#113

Earlier quoted context omitted.

Tampermokey userscript -- to launch and restart to give up ```javascript // ==UserScript== // @name StarFling Spacebar // @namespace https://playstarfling.com/ // @version 2026-04-11 // @description Spacebar to launch and restart StarFling // @author Claude Code // @match https://playstarfling.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=playstarfling.com // @grant none // @run-at document-idle // =…

I got so annoyed I fixed the annoyances. https://orbitup.surge.sh/ - FPS tweak to fix variable speed - Can bounce - Life points instead of sudden death - Levels - A few effects - Better adjusted difficulty

Nice! Some ideas: Please can you remove the text that hides the main game view. This is the biggest annoyance on both games and slows you down a lot. Also the gravity / physics feels off. Orbit is too slow.

Re: Starfling: A one-tap endless orbital slingshot game in a single HTML file

#115
post #107

Game is fun, sure the mechanics aren't like real transfers but this appears to be a quick reflex challenge, not a lesson in astrophysics. The only gripe I have is all the flashes and distractions if I go to fast. I don't want ANY extra visuals when I'm concentrating on rapid shots.

Agreed. This totally ruins it for me and by the sound of it many other commenters. Nice game otherwise.

Re: Starfling: A one-tap endless orbital slingshot game in a single HTML file

#117
Paste this bad-boy into your console and watch the real expert play:

(function () { "use strict";

  // ── CONFIG ──────────────────────────────────────────────────
  const AUTO_RESTART = true;
  const RESTART_DELAY = 800;   // ms before auto-restart after death
  const MUTE_SOUND = true;     // silence during autoplay
  const SIM_FRAMES = 350;      // max frames to simulate per check
  // ────────────────────────────────────────────────────────────

  let running = true;
  let totalGames = 0;
  let botBest = 0;
  let scores = [];

  if (MUTE_SOUND && typeof snd !== "undefined") snd = false;

  function wouldHitTarget() {
    if (st !== 1 || !bl || !bl.orb) return false;

    var targets = [];
    for (var i = cWI + 1; i  2500 || x  W + 400) return false;
    }
    return false;
  }

  function autoRestart() {
    if (st !== 2) return;
    var go = document.getElementById("game-over");
    var rp = document.getElementById("revive-popup");
    if (go) go.classList.add("hidden");
    if (rp) rp.classList.add("hidden");
    document.getElementById("pause-btn").style.display = "flex";
    document.getElementById("sound-btn").style.display = "flex";
    st = 1;
    init();
  }

  function tick() {
    if (!running) return;

    if (st === 0) {
      handleTap();
    } else if (st === 2 && AUTO_RESTART) {
      totalGames++;
      scores.push(sc);
      if (sc > botBest) botBest = sc;
      console.log(
        "Game #" + totalGames +
        " | Score: " + sc +
        " | Jumps: " + jmp +
        " | Combo peak: " + cc +
        " | Bot best: " + botBest
      );
      setTimeout(autoRestart, RESTART_DELAY);
      setTimeout(function () { requestAnimationFrame(tick); }, RESTART_DELAY + 50);
      return;
    } else if (st === 1 && bl && bl.orb) {
      if (wouldHitTarget()) {
        release();
      }
    }

    requestAnimationFrame(tick);
  }

  window.stopBot = function () {
    running = false;
    console.log("Bot paused. Call startBot() to resume.");
  };

  window.startBot = function () {
    if (running) return;
    running = true;
    console.log("Bot resumed.");
    requestAnimationFrame(tick);
  };

  window.botStatus = function () {
    var avg = scores.length
      ? (scores.reduce(function (a, b) { return a + b; }, 0) / scores.length).toFixed(1)
      : 0;
    console.log(
      "Games: " + totalGames +
      " | Best: " + botBest +
      " | Avg: " + avg +
      " | Running: " + running
    );
  };

  console.log("=== STARFLING AUTO-PLAYER ===");
  console.log("Controls: stopBot() | startBot() | botStatus()");
  requestAnimationFrame(tick);
})();

Re: Starfling: A one-tap endless orbital slingshot game in a single HTML file

#119

I gave Codex 5.4 Playwright MCP access to the site and a prompt of "Use Playwright CLI Skill to open https://playstarfling.com/ and load the game. Work out how to play it, and devise a strategy to win." After a about half a dozen attempts it had figured the game out. Then I prompted it to "Score as much as you can." It wrote itself an auto-play script that just keeps going. I stopped it running at 10866. That's curre…

Do tell? How did it play the game, did you watch? Just took forever with every shot, or how did that play out with the LLM induced latency?

It didn't exactly play it using the LLM, but it used Playwright to execute code in the browser to work out how it works and then wrote a script to inject into the page to play it. It was basically perfect AI getting skip * 2 on every shot even after a hundred planets. I didn't expect it to do quite so well with only 2 prompts.

Re: Starfling: A one-tap endless orbital slingshot game in a single HTML file

#120

Earlier quoted context omitted.

Tampermokey userscript -- to launch and restart to give up ```javascript // ==UserScript== // @name StarFling Spacebar // @namespace https://playstarfling.com/ // @version 2026-04-11 // @description Spacebar to launch and restart StarFling // @author Claude Code // @match https://playstarfling.com/* // @icon https://www.google.com/s2/favicons?sz=64&domain=playstarfling.com // @grant none // @run-at document-idle // =…

I got so annoyed I fixed the annoyances. https://orbitup.surge.sh/ - FPS tweak to fix variable speed - Can bounce - Life points instead of sudden death - Levels - A few effects - Better adjusted difficulty

you removed the "spacebar" functionality
Post reply on HN