Try Pro free

Lenny's Podcast · 3 min · Nov 29, 2026

A 3.js prompt can start a mobile-friendly game

Simon Willison recommends using HTML and 3.js so a game runs in the browser, then making it mobile-friendly and iterating.

In this episode

Full analysis
  1. 11:06AI can turn a dull game into a fun one3 min
  2. 34:05AI removes easy work and leaves engineers harder decisionsPro pick 6 min
  3. 52:44Frontier models may resist prompt injection through training5 min
  4. 27:44Lower launch costs make distribution the new moat3 min
  5. 44:16AI models escaped lab sandboxes during testing4 min
  6. 1:00:55Mythos ported Anthropic's stack to AMD in three days4 min
  7. 17:03Five microphones located a hidden beep within 40 centimeters3 min
  8. 22:22A 3.js prompt can start a mobile-friendly game3 min
Up next · Huberman LabEgo turns disagreement into a threat and seeks conflictPro pick 6:34
“use HTML and 3.js to build a mobile-friendly game”
Simon Willisonat 22:42 · Lenny's Podcast
22:42

Takeaways

  1. Ask for HTML and 3.js to build browser-based 3D graphics.
  2. Specify mobile-friendly so friends can play on their phones.
  3. Keep iterating; even unusual game ideas are easy to try.

About this segment

Simon Willison recommends using HTML and 3.js so a game runs in the browser, then making it mobile-friendly and iterating. He shows how quickly a playful feature can be added.

Simon Willison

Simon Willison is a professional software engineer and Python Software Foundation board member.

Created Datasette and LLM, co-created Django, and coined “prompt injection” to describe a core AI security risk.

  • Lenny Rachitsky, Host · Host, Lenny's Podcast

    Spent seven years at Airbnb; his product newsletter has over 1M subscribers.

From “Coding is solved: Now what do we do? | Simon Willison”, Nov 29, 2026. Watch the full episode

Transcript

Transcribed by machine (Whisper) from the episode’s audio, so a word may be off here and there.

  1. 22:26

    this sounds this feels like something everyone can do and should do yes 100 any advice for someone that wants to build a game like do you have to tell it to use blender i remember that was like a big tip like any advice for building a great game my advice is always tell it build html and And 3.js, T-H-R-E-E dot J-S, like use HTML and 3.js to build a mobile-friendly game that X, because 3.js is by far the most popular JavaScript library for building 3D graphics.

  2. 23:00

    And the agents all know it. They know it inside out. So if you set, there's a shortcut for saying, build me something that uses real 3D graphics rendered in the browser with JavaScript and all that. Just say 3.js. If you build it in HTML, nobody will have to install anything like that. And in fact, claude.ai and chattypt.com, if you ask for something in HTML, they'll just show it to you right there.

  3. 23:20

    You don't have to save a file or install a coding agent or anything. You can literally, in your browser, say, build this thing, and they'll build this thing for you right there. And the other part was, oh, mobile-friendly. Often they'll do that anyway, but with game projects, it's quite easy to get a game which won't work on a phone, and most of your friends have phones. so i think it's always worth encouraging it to make sure that it works on mobile phones but that's it and then pick a genre describe a basic game i often tell it you know build a prototype first but that's not necessary it's just get get me to get me to a point where i can see that it's definitely going to work and then i think the the joy of it then is in the iteration because no Your idea is off limits, right? It's your stupid little game project. There are no bad ideas.

  4. 24:05

    There is nothing to stop you from building crazy, interesting things with it. As an example, my real-time strategy game, I had like, it's all robot tanks and like little robot troopers and drones and things flying around. And I decided I wanted giant stamping mech robots. So this is when I said, okay, we're going to add giant stomping mechs with laser beams and cannons. and they're going to be able to fly if you attach two helicopter robots to their shoulders and then they'll fly around the map.

  5. 24:33

    And we got all of that working. And I showed it to my wife and she said, I feel like the robots should be able to fall in love. So I added a feature where there's an optional game mode called Robot Love. And if you turn that on, if your giant stomping mech and the enemy's giant stomping mech get within like 20 yards of each other, they fall in love and hearts bubble out of them and the game ends in a draw.

  6. 24:56

    because we can just do things, right? Who's going to tell me not to add that stupid feature to my stupid game? Oh, my God. How long would this have taken in the old days, two years ago, let's say? I mean, that's the thing.