logoalt Hacker News

Golf game built last night with Claude Code, Svelte and ThreeJS

21 pointsby paulbjensentoday at 2:15 PM11 commentsview on HN

Comments

aedtoday at 3:04 PM

This is great and I’d love to hear more about what worked / what didn’t / how you achieved these results.

A couple of months ago I worked with my 9 year old to have Claude build a little game with threejs. We’ve now got three levels with characters shooting silly string and banana guns. It was really fun to see him imagine something, have it show up on the screen, and iterate it.

Anyway, I tried building an LLM-backed workflow that could guide kids through the game creation process and kids can see their idea come to like (think: “sparkly purple unicorn shoots stars at a dragon”). I couldn’t _quite_ get it to work like I wanted so I shelved it pending future ideas/improved models.

williamcottontoday at 2:58 PM

Seems fun! It can take the ball a long time to reach a stop, so maybe either skip ahead or use a friction coefficient that is higher when it is rolling?

bottlepalmtoday at 3:09 PM

Cool, ground needs a bit more friction on the grass area, but still cool.

adamtaylor_13today at 2:55 PM

I love that we can explore things like this without a huge time investment. I made a game that reminded me of the Spybotics: The Nightfall Incident

It's at https://adamtaylor13.github.io/botnet/ if anyone wants to try it.

It's still pretty rough compared to the original but, it's been fun enough for my kids to play!

parallax_errortoday at 2:55 PM

I sunk the ball, but the game didn’t end so I happily hit it back out of the hole!! Pretty fun though

Spacemoltetoday at 2:57 PM

Not sure what to say, looks cool. One hit and then the ball kept rolling, very slowly, seemingly without any friction.

Sorry but can't wait until this whole AI situation finds a proper balance.

show 1 reply
mrybczyntoday at 3:00 PM

seems fun. needs more physics :)

jaggstoday at 2:22 PM

Ah, excellent. I too recently created a golf game with Sonnet and that ai game maker who's name I forget. :) https://gerry7.itch.io/fairwayfun

kittbuildstoday at 3:15 PM

[dead]

kudithipuditoday at 3:11 PM

[dead]

cluckindantoday at 3:20 PM

Strictly speaking, this is not yet a game, as the main goal cannot be completed: getting the ball in the hole does nothing.

show 2 replies