HNNewShowAskJobs
Built with Tanstack Start
Replicube: 3D shader puzzle game, online demo(replicube.xyz)
174 points by inktype 7 days ago | 29 comments
  • epiccoleman4 days ago

    Man, that's a fantastic way of making me interested in the game. I'd heard of it before, but up until seeing this I figured I'd have to spend money and hop onto my PC (where I play games, as opposed to my work laptop) to check it out.

    Now, 15 minutes after clicking the link, I've tried the game out, had a fun time, and ... just might have to buy it.

    I'm impressed that this sort of thing was possible with Godot too. Very cool.

  • bstsb4 days ago

    related discussion:

    Replicube: A puzzle game about writing code to create shapes (https://news.ycombinator.com/item?id=43979916)

  • flipnotyk4 days ago

    Very fun! Not sure if it's a me issue, but the music kept getting static-y in the browser version for me. Maybe something to look into.

    • popcar24 days ago |parent

      It's an issue with Godot on the web unfortunately, when you're dropping frames the audio starts clipping and crackling. Judging by the other comment, the lua integration must be doing some heavy work.

      • yardshop4 days ago |parent

        I found that if I remove the number lines or position the display straight on to an axis, that the crackling drops considerably.

    • yardshop4 days ago |parent

      Same for me, when the code is not correct, the music is much slower and very crackly. Once the code gives the correct solution, the music speeds up and the crackles go away.

      Also agreed, very fun!

  • inktype7 days ago

    Note the "What is Replicube?" and "Introductory Puzzles" button on the bottom, which might be easy to miss.

  • bovermyer4 days ago

    OK this is really cool. I'll pick it up on Steam.

  • bryan04 days ago

    I think today's answer is actually incorrect. Or at least the reference animation has a hitch where it shows all red for frames 12 and 13. if it shows 2 purples for frame 13 then the animation is smoother and actually the math is much simpler.

  • slippy4 days ago

    Did anyone else solve the puzzle after finding a bug in today's puzzle where on step 13 the circle you were trying to match didn't change, but should have?

    Oh, nevermind, it appears others noticed this bug, too!

  • woolion4 days ago

    The developers are also behind JellyCar Worlds, which I found to be a wonderfully creative physics based "platforming" (there's a twist!) challenges/puzzles. It's ton of fun to play with a kid, yet there's a lot of really complex setups to really challenge yourself if you want to. A real gem!

    • WhereIsTheTruth4 days ago |parent

      The developer, Walaber is a solo indie dev

  • creativenolo4 days ago

    Hard to use on a mobile with the keyboard popping over the text editor, but looks like lots of fun. Wish there was a mobile app version.

  • tda4 days ago

    I finished it with a code size of 118, 19.82 cycles per voxel. Don't feel like making an account, but how does that compare?

    • mayoff3 days ago |parent

      I golfed mine down to 15.623 cycles / voxel.

          d2 = x^2+y^2
          -- 6 / pi = 1.909859317102744
          angle = 6 + 1.909859317102744 * atan(x, y)
          
          if z ~= 0 or d2 > 20 then return EMPTY end
          if d2 < 11 then return GREEN end
          if angle > t then return PURPLE end
          -- ugly special case because reference isn't smooth at 13
          if t == 13 or angle + 12 > t then return RED end
          return PURPLE
  • vivzkestrel4 days ago

    it would be absolutely amazing if we could have a puzzle very much like this that shows how to write a 3d FPS game in webGL. going absolutely step by step by showing how cameras work, then showing how a character is added , then showing how collision works, then showing how models can be swapped. imagine what an insane learning series that ll be

  • tantalor4 days ago

    This runs horribly in Chrome. Every other keypress is dropped and the music is super glitchy.

    • neuroelectron4 days ago |parent

      Runs great on Brave on my iPad mini. It doesn't even have an M-chip.

      • skeptrune4 days ago |parent

        Brave is quickly becoming the browser that just works.

        • xerox13ster4 days ago |parent

          That's been Vivaldi. Brave is the browser that just markets itself. If it "just worked" it wouldn't need crypto bs to lock you in and convince you it's "working".

          I've been getting all my ads blocked just fine with Vivaldi without inflating a shitcoin since before Brave had gourd smeared on its forehead.

          • neuroelectron3 days ago |parent

            That's true but it's trivial to turn off. Their handling of youtube ads and other custom de-enshitifications, and you don't even have to pay for it except your data leaks just to them, if you opt in.

  • granularity4 days ago

    Nice!

    On the leaderboard I'd like to see code size vs cycles in a 2D plot with the Pareto front highlighted.

  • rickcarlino4 days ago

    Had hours of fun playing this with my son (steam version). Great work.

  • sleepybrett4 days ago

    doesn't work in firefox. no thanks.

    • gryn4 days ago |parent

      it does work in firefox. I've had no issues.

      • JoshTriplett4 days ago |parent

        Likewise, works fine here.

        • sleepybrett3 days ago |parent

          odd potentially some form of blocker on my side then.

  • strontian4 days ago

    i love this so much <3

  • TheRealNGenius4 days ago

    [dead]