Building Games with OpenAI's Code Model
TL;DR: OpenAI has a new code generating model that’s improved in a number of ways and can handle nearly two times as much text (4,000 tokens.) I built several small games and applications without t…
Quick read
A blog post showing experiments using OpenAI’s code-davinci model to generate entire games and small apps from natural-language prompts. It explains several demo projects, links to playable CodePen examples, and notes strengths and limitations of the model.
- Play multiple demo games on CodePen
- See the exact generated code for each example
- Learn prompt patterns and limitations for code generation
Reactions
No reactions yet. Record a short about this link and it shows up here, in Reels and in the community feed.
Is andrewmayneblog.wordpress.com your site? Sign in to verify it and get a Verified badge, full stats and a link-back badge.
A closer look at Building Games with OpenAI's Code Model
What this page shows about the code-davinci model
The author describes using OpenAI’s code-davinci model to generate entire small games and apps from plain English prompts. They say the model handled larger context (about 4,000 tokens) and that every example was created by giving only simple instructions like “create a button that…”, with no manual edits to the output code. The post links to a CodePen collection where the demos can be played and the generated code inspected.
What you can actually do by following the post
You can read the author’s experiments and try the instruction prompts yourself if you have access to the model. The page lists several specific demos the author built with the model, including a minimal Legend of Zelda-style tile game, a Wordle-like word game, a Matrix-style raining text demo, Tic-Tac-Toe, a digging/dracula game, a 3D A-Frame maze, and an in-browser image manipulation tool. For many examples the author shares the demo and links to the generated code on CodePen.
Who will find this useful
People curious about natural-language-to-code experiments, hobbyists who like exploring demo projects on CodePen, and developers wanting concrete examples of how the model handles arrays, 2D tile maps, UI elements and simple game logic will find the writeup useful. The author notes they are not a game developer and that some prompts needed iteration, so it’s also relevant to people learning prompt techniques by example.
Questions people ask about Building Games with OpenAI's Code Model
- Can I play the demos from the page?
- Yes, the post links to demos hosted on CodePen where you can play and view the generated code.
- Did the author edit the generated code?
- The author says they did not change a single line of code and used the model’s complete output for each example.
- Does the page explain how to prompt the model effectively?
- The author discusses lessons learned about giving instructions and shares the specific prompts used for several examples, noting some prompts took iteration to get right.
What we found on this site
- Built with
- WordPress
- Served through
- Nginx
- Home page answered in
- 48 ms
- Trackers
- Google Analytics
- Ads
- None found
- RSS feed
- Yes
- AI crawlers
- Blocks OpenAI, Anthropic, Google, Common Crawl, ByteDance, Apple, Meta, Amazon, Cohere and Diffbot
- Set up for phones
- Yes
- Real-visitor speed
- Not enough visitors for Google data
- Lighthouse on a phone
- Speed 70, Accessibility 83, SEO 92
- Google safety check
- No threats found
Checked November 18, 2026 from the site’s own code and public records. See how the rest of the web compares in the NexURLs Internet Report.
Sites like Building Games with OpenAI's Code Model
- A Great Old-Timey Game-Programming Hackblog.moertel.com
This post recounts a programmer’s effort to speed up an 8-bit PC side-scroller by optimizing tile copying on a 6809...
- Open-Source Memory System for AI Coding Agentsgithub.com
LockIn is an open-source notebook for AI tools to save and organize notes. Users can self-host it and interact with...
- OpenManusgithub.com
OpenManus is an open-source implementation of the Manus agent system that runs locally or with remote browser tools...
- Made an open-source Lego AI generatorgithub.com
A GitHub repository providing agent tooling to generate editable LEGO models using AI, JSON plans, and LDraw parts...
- CodinGamecodingame.com
CodinGame lets you build and compete with programming bots, either by coding yourself or connecting an AI agent. Visit...
- Game Programming Patternsgameprogrammingpatterns.com
Game Programming Patterns is Bob Nystrom’s book about patterns that make game code cleaner, easier to understand, and...
More Tech & AI finds
- How Not to Build a Music Playeralichraghi.github.io
- tiny-vocatiny-voca.n4ze3m.com
- Hackers Breach US Air Force Cloud Platformreut.rs
- The Hacker Who Hunts Predatorsyoutube.com
- Astra 6.2threeui.com
- Build and Share Mac and Windows Apps with Claudeclaude.ai
Feeling lucky? Try the random website generator.
Where people went next
Nobody has added a next stop yet. Be the first.