r/opencode • • 8h ago

I've made a game with GLM 5.3 on OpenCode

Enable HLS to view with audio, or disable this notification

Sorry if this post sounds a bit AI-generated. I used AI to translate it from French to English.

I've only been exploring AI for a few weeks. Until recently, I was still stuck in the days of ChatGPT when you had to manually copy and paste scripts.

For now, I'm not making actual games. I'm just testing different models using the same GDD and the same prompt, then trying to improve the most promising results.

My goal is to find the model that delivers the best results without having to spend hundreds of euros. I'm only doing this as a hobby, so spending €100 a month isn't something I can justify.

Here's a small demo of what I managed to create with GLM 5.3 using OpenCode, and then improved using Claude Code with Sonnet 5.5 (High). Claude Code only needed a single prompt.

The result is pretty good, even though it's still far from what Opus 5.5 can achieve. However, it's also significantly cheaper.

By the way, does anyone know if a €20/month Claude subscription would be enough to use Claude Code with Sonnet 5.5 on High or Medium for someone who codes several hours a day, every day?

Also, sorry if I've done anything wrong. This is my first time posting on Reddit (I think ^^), and I'm still not very familiar with Reddit etiquette.

31 Upvotes

18 comments sorted by

3

u/No_Cantaloupe_1888 7h ago

Ahat did u use unity or godot? And no the 20$ plan is not enough but if u are not on a rush u can get alot of work done but u will run out of it in about 3 days. I use a combination of opencode and claude code claude for planning for designs setting up projects then i use opencode with glm 5.3 or deepseek v4.1flash. Honestly what u have achieved here is pretty impressive if glm is what u used only

2

u/FougereBle 6h ago

I used Godot because it's the engine I usually work with outside of AI, and I've heard that AI models have an easier time working with it than with Unity.

OpenCode + Claude Code sounds like a good idea, yeah. It's actually pretty similar to what I did here, since I didn't exclusively use GLM. I created the GDD with Codex (Sol, I think, but I can't remember), then gave it to GLM and basically told it to "code everything" ^^. After that, DeepSeek V4.1 Flash took over the project, with some help from Sonnet 5.5 (High), which tested the game and listed the necessary fixes in a Markdown file.

However, I'm planning to try building the same project using only DeepSeek, without any other models, to see how the results compare. Unfortunately, I've completely run out of credits after using a model that burned through them all in a matter of seconds. :(

1

u/AggressiveMonk 7h ago

That's very impressive. You should have tried writing the plan in something smarter then having flash agents implement

1

u/FougereBle 7h ago

Actually, it's a GDD I originally created with Codex (the €20 plan) in HTML format, following a recommendation. I then iterated on that plan, which is where HTML comes in handy, since it's easier for humans to read than Markdown.

Next, I gave the GDD to GLM 5.5 and basically said, "Create this game following the GDD, and add anything you think would be useful or interesting." Not a particularly good prompt, but I'm still learning haha. It ran autonomously for a few hours, and I got a decent initial result, nothing amazing though.

Then I used DeepSeek V4.1 Flash with a very vague prompt: "Improve everything you can: UI, environment, game feel, etc." Again, it ran for a few hours, and I got a pretty good result. After that, I used Sonnet 5.5 on High, which tested the game and created a Markdown file listing everything that needed fixing. DeepSeek V4.1 Flash then implemented those fixes.

So it's not a game made entirely by GLM 5.3, but I wanted to experiment with different techniques as I learned more. The fact that DeepSeek handled a significant portion of the work is actually a good sign, considering how incredibly cheap this model is.

I'm planning to repeat the same experiment using only DeepSeek V4.1 Flash, without any help from Claude or GLM, to see how the results compare. If the outcome is decent, it would mean that a simple €10 subscription is enough, at least for hobby projects, and that would be awesome.

For now, though, I can't do any more testing because I used a model for another experiment that burned through all my credits in a matter of seconds haha.

1

u/AggressiveMonk 6h ago

I've experimented on similar games before except instead of claude and html, I used gemini and a multi file markdown document. I try not to be too vague with flash agents because while they can execute tasks just fine, they aren't very creative. Ernie can come up with some pretty good game ideas and it's free on kilo and open router for now. Sorry for my disjointed replies, on phone

1

u/FougereBle 6h ago

Oh yeah, DeepSeek isn't particularly creative ^^. And I forgot to mention that at the very end, I used Sonnet 5.5 on High again just to put the finishing touches on the game (tweak the UI a bit, add a few details, and the cutscenes)... So yeah, it turns out it wasn't just GLM after all, and the title is misleading. I've done so many tests with so many different models that I've completely lost track. Sorry about that ^^. But at least you now have the full process. I'll make sure to be a bit more disciplined with my future Reddit posts.

1

u/AggressiveMonk 6h ago

I meant my replies are a little disjointed rn, but here's something you can try in the future, instead of asking for improvements in general, ask the cheap agents to fan out in different differents to research and suggest improvements in different directions, i.e QOL improvements, interface improvements, engagement etc. Cheap agents tend o work better when they have a clear direction instead of a generalist "Improve this".

I made a survivors style game awhile back and I expermited with single improvements prompt vs fan out , research and suggest, and the results were vastly different

1

u/FougereBle 6h ago

Oh, I see! I don't really know how to use agents yet... Do I just need to say something like, "Improve this and that, using separate DeepSeek V4.1 Flash agents for each task"?

1

u/AggressiveMonk 6h ago • Heartwarming

Normally they just use whatever you have in default but if your main chat isn't on flash agent you can specify what you want with the slug. I.e

I am creating a <<FPS>> for <<PLATFORMS>> in <<SUBGENRE>>. I really like the games <<COD/MW3>>
Fan out subagents using <<numes/deepseek-v4.1-flash-free>>. Each one should do research and suggest me improvements on the following subjects. Each subject shoud have its own subagent

  1. Quality-of-Life — settings, remapping, replay/killcam, matchmaking, persistence
  2. UI / HUD — ammo, health, hitmarkers, radar, layout, information hierarchy
  3. Game Feel / Gunplay — recoil, hit feedback, camera, input latency, TTK
  4. Core Loop / Match Flow — spawn→fight→resolve, round structure, pacing
  5. Weapon & Economy Balance — damage model, falloff, attachments, meta health
  6. Movement / Traversal — sprint, slide, ADS, mantle, skill ceiling
  7. Level / Map Design — lanes, cover, sightlines, spawns, callouts
  8. Difficulty / AI — bot behavior, encounter scaling, modes
  9. Onboarding / Tutorial — first 15 min, training range, controllability
  10. Retention / Progression — unlocks, ranks, daily/weekly loops
  11. Netcode / Performance — tick rate, hit reg, prediction, framerate targets
  12. Audio / SFX — footsteps, positional audio, gun reports, info warfare
  13. Accessibility — remap, colorblind, subtitles, audio cues, motor options

Of course feel free to replace the topics with your own, those are just some stuff I came up with

1

u/Relative-Ingenuity15 6h ago

You can create similar things with ohmygame(it runs opencode inside it) and a local LLM or a cheaper opencode model.

I created this racing game with Qwen 3.8 flash next running locally at IQ3_S quant with looped transformer adaptor: https://zzzprojectpage.github.io/daily-driver-racing/ Claude only helped with audio because it was the last part and I was inpatient after 20 hours of working with Qwen back and forth.

The game has a testing map, a downloaded map from sketchfab and an original map created in blender by Qwen plus 5 cars from sketchfab

1

u/FougereBle 6h ago

Oh, that's really cool! Unfortunately, I have a laptop with an RTX 4070 Laptop GPU with 8GB of VRAM and 32GB of RAM, so I can't really run coding models locally. The only models I can manage to run are 7B models, which aren't very capable and produce pretty poor results.

However, I can run things like ComfyUI and generate 3D models or images locally, even though the quality is nowhere near what Tripo AI can produce, and each generation takes at least six minutes.

Hopefully, models will become lighter and more efficient in the future.

1

u/Relative-Ingenuity15 6h ago

Nevertheless I find ohmygame the best harness to create games using whatever LLM you want(local or cloud) because it provides all the necessary tools and resources to create whatever game you want

1

u/FougereBle 4h ago

I just tried OhMyGame... It used Claude Sonnet 5.5 on Low and... wow, the results are incredible! With just a few prompts, I got something that looks incredibly professional, so much better than the video in this post.

Now the question is whether a $20 plan using only Sonnet 5.5 on Low is enough to last a week with several hours of use per day.

Thanks for introducing me to this!

1

u/Personal-Tourist-464 3h ago

Can you record/document the process??? I am looking forward to making my own game but want to see a few other end to end creations before I dive in. 

1

u/FougereBle 2h ago

Hey! Unfortunately, I've been running so many other experiments at the same time with different AI models and workflows that I can't remember everything. But here's what I can tell you for certain:

First, I generated the GDD with Codex (Sol, I think) in HTML format, and then iterated on it until I was happy with it. When creating the GDD, I asked the AI to include an "Open Questions" section that it fills in itself. This allows me to identify anything that hasn't been clearly defined yet and answer those questions so that my answers can be incorporated into the GDD. The AI can also add new questions as we go.

Once the GDD was finished, I placed it in a folder where I had created a blank Godot 4.7 project. Then, I created an OpenCode project using GLM 5.3 and gave it the following prompt, which was also provided by ChatGPT (translated from French into English):

Read the GDD in gdd.html. Deliver the project in 5 phases: 1) plan + asset list, 2) minimal playable gameplay loop, 3) 3D assets and animations via Blender MCP, 4) content and balancing, 5) polish. After each phase, run godot --headless --quit, fix all errors, and only proceed to the next phase if the game launches successfully. Do not create any assets that the level does not need. Define "done" as follows: the game launches, the main gameplay loop is complete, and there are no placeholders. No external APIs.

It ran for quite a long time, and I ended up with an initial version that was a bit buggy and wasn't particularly impressive, but it was still a very good foundation.

Then, I used DeepSeek V4.1 Flash with a very generic prompt along the lines of: "Improve everything you can. I want a professional-quality game that's well finished, polished, and has a beautiful interface."

After that, I used Sonnet 5.5 to test the project and create a Markdown file listing everything that needed fixing.

Once the Markdown file was created, I used DeepSeek V4.1 Flash to implement all the fixes using the prompt Sonnet had given me.

Finally, once everything was completed, I used Sonnet 5.5 on High to make the final fixes and improvements to the visuals and UI.

1

u/gotzham 3h ago

would you mind explaining how you got the assets and animations? are those ai generated or they come from a bundle?

2

u/FougereBle 3h ago

The initial assets and animations were AI-generated, but they weren't very good. The AI then suggested downloading resources on its own and ended up using free assets from Quaternius. Some of the 3D models are still AI-generated, though.

1

u/gotzham 2h ago

thanks, they fit very well. You did an awesome job putting it all together