AI in Game Development: Gamedev Tips, Tools, Techniques, and GPT / LLM Agent Integration

Hey OpenAI Dev Community!

As a longtime member here (5+ years and counting!), I’m excited to kick off a general discussion thread dedicated specifically to the intersection of game development and AI-powered tools.

What We’re Looking For:

  • Practical tips and techniques for leveraging AI in game development workflows (e.g., AI-driven art, procedural generation, intelligent NPC behaviors, or adaptive gameplay).

  • Helpful insights into integrating GPT models, AI assistants, and generative tools into various stages of gamedev.

  • Recommendations and experiences using specific tools, APIs, frameworks, and services.

Guidelines:

  • Focus primarily on sharing knowledge and actionable advice.

  • Keep promotional content limited! Occasional project showcases that highlight effective AI use are fine.

  • Support each other by answering questions, providing resources, or offering constructive feedback.

Let’s build a valuable resource together!

What AI techniques or tools have significantly enhanced your gamedev projects?

Share your wisdom below! :backhand_index_pointing_down:

9 Likes

I found this on YouTube the other day but haven’t reached out to the dev yet. Looks like a set of tools for sprites…

And for something really cool (for me anyway!), there’s this

Two LLM agents discover they are trapped in a room… I’ve reached out to this dev to see if they want to join us here and share.

I’ve personally used AI for a lot of development. If anyone has questions, I’m happy to help if I can. Really crazy what you can do these days!

3 Likes

Here’s some more agents… in Among Us this time… will the LLM agents “lie” to win?

I guess the headline buries the suspense haha…

I really need to spin one of these up myself soon… let them go through my dungeon perhaps?

3 Likes

I miss ChatGPT browser… Here’s Claude playing AoE2, an ancient RTS (that’s still played today!)

The video got me thinking about AI for game testing not development per se… Would be great to give AI your game and say “play this 10,000 times real quick” and then have a chat about it…

Trying to throw out some interesting conversation starters for us as I want to see this thread go somewhere! :slight_smile:

1 Like

“Thought about playing the game… 852000ms Here’s move 1.

“Summarize these 10000 chat histories” might be a challenge.

3 Likes

Yeah, I think a custom tool would do that better, especially combat stuff. Maybe an LLM or multi-modal model for playing the game slowly while the developer observes?

I’ve been looking at a lot of agents in games lately. The Among Us one upthread had a limit of 2k token PER SECOND… it was a local model, but still.

Also, thanks for being here, as you’re a gamedev yourself now! :slight_smile:

In all seriousness, your eyes on this thread and your wisdom will be appreciated.

My goal is to attract more devs here… gaming related but still developers! So much cool stuff happening these days.

1 Like

I think it would be possible to build AOE as well. I’ll give that a shot in a few weeks.

Although it would be much easier to build a zombie shooter game in your own location using GIS data (DGM1, citygml,… own meshes - don’t know how it is called in english, LIDAR, geotiff.. I would even say something like age of empires in your own city with 3D models (glb models - GitHub - Tencent-Hunyuan/Hunyuan3D-Omni: Hunyuan3D-Omni: A Unified Framework for Controllable Generation of 3D Assets :wink: ) of houses can’t be too hard) and a cesium + threejs bridge

1 Like

here we go …

okok in a couple weeks.. I got other stuff to do atm.

2 Likes

I haven’t watched it all yes but interesting!

A lot of these videos, though, it’s a lot of different projects, not just game stuff.

Still interesting, though!

ETA: An idea I had was for an AR roguelike… for gamers to get outside and get exercise lol

2 Likes

yeah, that’s not that hard to do.. you can even make it without leaving the house (at least I could do it because we have partnered with a company that has planes and does orthofotos / lidar - but we do boring stuff like flood simulations for insurances instead).

we add some AI magic on top too

1 Like

Here’s a puzzle that’s been casually plugged at for months (about 4x too large to post code). Your network has been scrambled by an AI! (actually by random.choice)

netwalk_warp.pyw (download)

“Hard” rules (merely scoring) is that you must click or right-click to rotate a tile in the correct direction to align it, a single try. Shift-click will let you mark a tile you determined correct. Tile errors tracked.

The work beyond other gameplay yet seen in others’ is the Prim tree generation tuning. It can be very pipey, branchy, or leafy.

Gameplay about as long as reasoning model thinks, for your downtime. The next iteration is to make each tile object remember how particularly you messed up with over-rotation, or with better live statistics (or hiding any feedback or even tile marking to go “infuriating”).

1 Like

28 posts were split to a new topic: Community members discuss a topic

That’s really cool, @_j

Any hiccups you’ve run into?

How hard is it to get one of these apps on free hosting to share?

Are you using 5.2 pro to help at all? How do you use AI to help code for game dev?

GPT-x-Pro only runs on Responses API. I will not be a statistic they can include in their “over 50% of our API developers use Responses” - because of their own model gating. That’s a statement with as much value as “100% of our API developers have moved off GPT-4.5”. Plus, it is the worst for going in its own direction and diverging from the supplied task and input.

I still might make the most of Pro in ChatGPT..

Hiccups: will be encountered using GPT-5.2, which is nice for patching when you have articulate tasks, but it is no genius. After a run of several OpenAI models was a multi-turn dead end in a task of fulfilling the need to have a frustrating-gameplay Minesweeper, (such as my one provided example of a uncertain tile configuration being the only thing 5.2 could replicate to poison a game board, and not following “needs a solver” instructions at all), what actually delivers is a one-and-done different vendor:


(with just minor algorithmic mis-step I follow up on)


Low creativity; my ChatGPT GPT-5.2-thinking prompt about the “Solitaire” game win celebration:

What original thoughts did the AI come up with from my prompt asking for brainstorming? An echo.

(the delivered code is good though - press the Easter egg “w” key in my frivolous-vibes Solitaire)


Things I’ve shared here are basically “the source” with no backend; they’d run the same if you self-hosted or even just opened the HTML, which is the point of sharing. The Netwalk game above is Python for you to run locally, where I provided a file download link for local app that gives you an experience similar to a compiled win32 desktop UI. It could be shared on a dialup BBS.

(Netwalk was originally started by Gemini Pro, fully-realized pygame-based until I got to my limit with that library without native UI controls).

1 Like

One thing I have learned using GPT-style tools in gamedev is that they are most powerful when used to accelerate experimentation rather than replace playtesting. I have had much better results letting AI help me explore many small variations quickly, then using real player behavior to decide what survives. Optimizing for ‘least resistance’ in tools often produces systems that are efficient to build but lifeless to play — so I now treat friction as something to relocate into play rather than eliminate.

1 Like

I’ve been using 5.2 pro in ChatGPT. Nothing fancy and I can’t give it the entire script usually, but helpful I’ve found. Might be because I’m not a dedicated developer and I tend to tinker. I know just enough to tell it what to avoid. I’ve caught it doing things just to mask the problem rather than fix it.

I’m really interested in seeing workflows from others. I’ve been pointing people to this thread outside the community, so hopefully we have more game devs show up. Takes something interesting to get people to stick around, and I’m hoping this helps us attract new devs.

Might make some time to get agents running around in my dungeon on a private instance. If I do, I’ll be sure to share with the group.

2 Likes

There’s a rather well-known software developer who runs the chat that I hang out in… who pretty much swears by codex now.

Toss a couple of prompts at your gpt about the differences between it and codex when coding, that might help you organize your flow to higher efficiency.

3 Likes

This looks interesting…

2 Likes

They just invented wheels, and the guy is already trying to steal them.

LOL.

1 Like