Let’s see how long I’ll keep this up. (dev log to force myself to post updates, works in progress, etc.)
woah, I actually posted something. also damn this post took forever to write.
This is dev log #1.
A First Look at C3D
C3D (Cyrus’ 3D), is a general-purpose three.js-flavored 3D engine for MakeCode Arcade: a pleasant object API for users, with flat arrays and tight loops underneath for a fast renderer. It’s
designed around the 16-color 160x120 simulator; running on hardware is not a goal.
![]() |
![]() |
![]() |
![]() |
And the name? Originally, I was thinking of U3D - UnsignedArduino’s 3D - but @Unique already has U3D - looks like there are only 24 letters left for MakeCode Arcade 3D engines!
Demos
Controls for the demos above are WASD for camera translation (P1 controls), Q/E or space/enter to raise up and down, IJKL for camera rotation (P2 controls).
Mesh imports are from a preliminary script one-shotted by Claude. I plan on releasing an actual tool to help import these models and also support a basic fromOBJ method directly within C3D.
- Suzanne the Blender Monkey comes directly exported from Blender.
- The Utah Teapot comes from https://graphics.cs.utah.edu/teapot with triangle mesh, eliminate duplicate vertices, y-up orientation, resolution of 10 (14k triangles, 7k vertices), 2026 version with handle/sprout/lid/body).
- The Stanford Bunny comes from https://github.com/alecjacobson/common-3d-test-models
Preliminary Benchmarks
Preliminary performance numbers are tested on my personal laptop: Google Chrome 154 incognito with JavaScript V8 15.4.80.20, Windows 11 Version 25H2 (Build 26200.9457), ASUS Vivobook S 16 (Ryzen AI 9 HX 370, 32 GB unified DDR5, 1 TB NVMe) running off power (not battery). I’d love to hear what kind of performance you get with your device! (open the inspect console at the default camera angle - I’ll have a more rigorous benchmark later)
Suzanne the Blender Monkey (total 555 vertices, 967 triangles)
l>tFrame: 1.101 (total frame time - all times in milliseconds)
tModelCollect: 0 (model collection in scene time)
tSetupAndMats: 0 (setup and material fetch time)
tMVPs: 0 (MVP multiply out time)
tVertexTrans: 0.199 (vertex transformation time)
tTriClip: 0 (triangle clip time)
tProj: 0.101 (projection time)
tRaster: 0.399 (triangle rasterization time)
pxTest: 5064 (pixels tested)
pxWrite: 4288 (pixels written to the screen)
tris: 614 / 967 (rendered / total triangles)
Utah Teapot (total 7421 vertices, 13966 triangles)
l>tFrame: 4.4
tModelCollect: 0
tSetupAndMats: 0
tMVPs: 0
tVertexTrans: 0.6
tTriClip: 0.7
tProj: 0.4
tRaster: 2.6
pxTest: 7368
pxWrite: 4231
tris: 7180 / 13966
Stanford Bunny (total 34834 vertices, 69451 triangles)
l>tFrame: 26.4
tModelCollect: 0
tSetupAndMats: 0
tMVPs: 0
tVertexTrans: 3.6
tTriClip: 2.9
tProj: 2.1
tRaster: 17.4
pxTest: 3632
pxWrite: 3558
tris: 28775 / 69451
Numbers from Claude:
| Model | Rendered tris/s | Submitted tris/s | Tested px/s | Written px/s | Pixels per rendered triangle |
|---|---|---|---|---|---|
| Suzanne | 558 k | 878 k | 12.7 M | 10.7 M | 8.2 |
| Utah Teapot | 1.63 M | 3.17 M | 2.83 M | 1.63 M | 1.0 |
| Stanford Bunny | 1.09 M | 2.63 M | 0.21 M | 0.20 M | 0.13 |
Submitted is all triangles even before culling. Tested is a pixel from a triangle, written is if a pixel was closer on the screen (the z-buffer) You can see by the low pixels/rendered triangle that most triangles won’t be rendered, and these numbers mostly measure triangle setup. Suzanne’s numbers are close to browser timing measurement, so again, treat these are preliminary with a big caveat - these are stress testing many small triangles!
What’s Built
This extension is not ready for use in the sense that I’m still working on it - there isn’t even a version created in GitHub Releases! (Of course, you can import the extension, but as there isn’t a version, there’s no semver for me to follow, so breaking changes can happen at any time!) But what’s available includes:
- Fast math objects including
Vec3,Quat(for rotations), andMat4that include chainable methods. - A scene graph composed of
Object3Ds. All have plainposition,rotation, andscalevectors you modify intuitively. PerspectiveCameraandOrthographicCamera.- Geometry and materials so far with
MeshandFaceColorMaterial. - The renderer core without lighting or shadows. It does transforms, near/far/side clipping, per-model frustum culling, back/front-face culling, and a z-buffer. No painter’s algorithm - we do our own span loop!
Developing Locally with mkc and JetBrains WebStorm, or Any Other IDE, Potentially Alongside AI Agents
Originally, I started this project within the regular MakeCode Arcade editor we all know and love dearly, but realizing the scope of this project, I decided to explore other methods to use more “full-featured” IDEs. Additionally, AI agents seem to be an ever-more-important thing to utilize, and so of course I wanted to also dip my toes into it, to see whether Claude in Claude Code could autonomously develop features, fix bugs, or create tests.
Of course, there is the great Microsoft MakeCode Arcade extension for Visual Studio Code, which even works on the web! But personally, my favorite children will be the IDEs by JetBrains (not sponsored by JetBrains; but they now have a lot of IDEs free for non-commercial use, or if you are a high school or university student, you may be able to use the GitHub Student Developer Pack!) with their Classic UI plugin. I’m also definitely way too used to their autocomplete engine, so it looks like after I graduate I’ll be shelling out the money for them ![]()
Of course, you can’t just use the MakeCode Arcade VS Code extension inside WebStorm (another project for another day?
), but for extension development, you don’t even need all of the features in the VS Code extension that are essential to regular game development, such as editing images or songs. So, you can just run the mkc CLI tool locally! My experience with it has been great so far. If you want to consider making a complex MakeCode Arcade extension with another editor, I’d suggest this workflow, which is what I’m using for C3D:
Developing MakeCode Arcade extensions inside WebStorm or other non-VS-Code-related IDEs
- Have the
mkcCLI tool installed (npm install -g makecode). - Use https://arcade.makecode.com to create your project and push to GitHub. Yes,
mkccan init a blank project locally (see the GitHub link above for docs), but it doesn’t seem to come with all the files that a normal MakeCode Arcade project comes with. And you’ll easily have a GitHub repo to store your code! git clonethe repo and open it in WebStorm (or your favorite IDE)- Run
mkc installat the root of your MakeCode Arcade project so that WebStorm and the TypeScript engine can provide you with autocomplete and understand the structure of your code. - Run
mkc serveand open the localhost link to see the simulator runmain.tsortest.ts. Any errors in the build process (e.g., undefined variable) will show up in this terminal with line numbers. - Start developing - create and edit files normally and update
pxt.json’sfileslist to ensure your code file actually gets included. Saving your files will prompt a rebuild and reload the simulator in the browser window. Don’t forget to commit and push your code!
And to continue development another day, just open back up the project in WebStorm, run mkc serve, and continue coding! I particularly enjoy this workflow, and it works for me because C3D doesn’t require me to edit images, tilemaps, etc., so the lack of those features without a suitable IDE extension/plugin means it doesn’t matter.
AI Agents Using the Simulator
If you want Claude Code or any other AI agents to try to write code, fix bugs, or look at the simulator, you can ask your favorite AI agent to use a browser MCP server, like the chrome-devtools MCP server, to open 127.0.0.1:7001 and read console.log outputs with the console tools or take a screenshot to confirm static visual output. For example, this is an excerpt of what’s in my CLAUDE.md for C3D: (ignore the \ below; they were messing up the code block formatting)
## Commands
This extension targets the simulator only (not hardware/micros). Use the `mkc` CLI
(`npm i -g makecode`), not `pxt`:
\```bash
mkc serve # builds and serves the sim at 127.0.0.1:7001 — typically already running
mkc build -j # run this specifically to check that a build succeeds
\```
`mkc serve` is normally already running in a terminal; saving a file triggers its own build and
reload, so `mkc build -j` is only needed when an explicit build check is wanted (e.g. before wrapping
up a change) rather than for routine edits.
To view output: make sure `mkc serve` is running, open `127.0.0.1:7001` with the chrome-devtools MCP,
read `console.log` output via the console tools, and take a screenshot to confirm visual output.
`test.ts` is where local-only test/benchmark code goes — per `pxt.json`'s `testFiles`, it never ships
with the extension. `tsconfig.json` targets ES5 with `noImplicitAny` on but
`strictNullChecks`/`strictPropertyInitialization` off; output goes to `built/` (gitignored except
what's checked in).
It’s instructed to also write any scratch code in main.ts or test.ts to test out changes or benchmark performance, typically through a lot of console.logs, as that’s the primary method it can easily get output from the simulator.
What’s Next
I plan for the next posts to be either progress on MakeCode-Arcade-to-App’s rewrite, detailed benchmarks on C3D’s performance, a writeup on simulator performance notes Claude found, or a writeup on one of the next features I plan to build:
- Textures
- Lighting and shadows
- Model import tools
There are definitely more planned in store, though!
Of course, you can see the extension’s progress on GitHub:
Follow this thread to stay updated with the development of C3D. ![]()
AI Usage
AI, as referenced, refers to LLM-based technologies such as Claude and ChatGPT, matching the colloquial usage nowadays.
Currently, as a Computer Engineering undergraduate student, theoretically I should know both hardware and software. But of course, I’m just a wee little student still learning, so I’ve been collaborating and learning extensively from Claude (this post is not sponsored by Anthropic lol), both on claude.ai and Claude Code, as I’m building this project.
AI (mostly Claude) usage in this project includes:
- Drafting and reviewing API design specs and decisions.
- AI implementing code for boring or “less important” parts.
- Spelling out the structure and providing hints as I manually code the critical parts of this extension, including the renderer.
- Reviewing code.
- Researching and testing code, especially to optimize performance in the simulator.
I’d say the work between me and AI is approximately 50/50. Of course, we could go on all day talking about the ethics and usage of AI in not just coding but in our work and life in general (and I do have my own opinions), but this post does not intend to start a battle between differing AI viewpoints. Of course, small comments on AI usage is acceptable, but I implore you to not start heated conversations on AI and waste moderator effort.
I do believe that it’s important to let you guys know that I have used and will continue to use AI to help me not just deliver this project in a reasonable timeframe but also learn 3D graphics programming and use AI effectively. And so, this is why I’ve included an AI usage section.
Bro just casually popping out of nowhere and posting like a 1000 word essay about his 3D engine that runs INSANLEY SMOOTHLEY AND QUICKLY LIKE WHAT. I wish I had this much aura ![]()
All jokes aside, this is crazy! By lighting do you mean changing the color of a shapes face based on how far away it is? Also how do you plan to create worlds with this, would you have to code every single element of your scene or use some other cursed techniques.
HOLY YAPYAP I DONT CARE /j also post these weekly and you get snake bombed by everyone if you don’t
Future plans include fog (fade to black or white or different color), but the lighting I’m primarily thinking about is the directional, spot, and point lights, alongside shadows that models cast. No RGB obviously so pixels only get darker from unlit (what you see)
There are plans to have easy builders like box, plane, sphere, cylinder, etc., and you can set a single color, per-face color, or texture to add to it. Maybe heightmap from image. Blocks API to easily do this is a little more difficult but I plan on having blocks eventually. I also plan on having a tool that converts OBJs and other mesh files to the number arrays or some other import format, so you can design in Blender or download models from the internet.
haha I’ll try, but again, being an engineering student, co-op applications, and marching band mean time and/or sleep is scarce
.
MakeCode being pushed to the limits yet again, absolutely lovely stuff @UnsignedArduino!
(sorry for taking that name btw)
Following in the steps of greats like you ![]()
mine is k3d
xd
no pretty GIFs and demos this time unfortunately, but I hope you still enjoy!
This is dev log #2.
Rewriting MakeCode-Arcade-to-App into an Actual Build System
MakeCode-Arcade-to-App (mkcd2app for short) is an (unofficial) tool I’m working on that converts MakeCode Arcade games into a static website, an Electron app, or a Tauri app, so you can ship polished games that don’t need the internet without using a share link or GitHub Pages. I’ve been working on a rewrite of it from scratch (prompted by @randomuser and @InvalidProject getting Hebes on Steam!), and there has been enough progress that I finally have something to talk about!
Times are on my ASUS Vivobook S 16 (Ryzen AI 9 HX 370, 32 GB unified DDR5, 1 TB gen 4 NVMe) running off wall power (not battery)
Why Another Rewrite?
If you define “work” as in a Python script that felt more like a fragile bash script running commands in sequence and blowing up when the moon isn’t in the correct phase on the 23rd of the month, then yeah, the original did “work”, but it didn’t feel like a proper tool that developers like you all could rely on. It ran a bunch of commands in a sequence (download the game, compile with mkc, scaffold and build a Vite site, and scaffold and build an Electron or Tauri app) and every few months something in the JS ecosystem would break it - scaffolders like create-vite or create-electron-app ran on @latest so whenever a new interactive prompt was added or parameters changed, the whole thing broke horribly and I’d have to go back in and fix (or send an AI to fix it
).
Caching was also fake - you had to pass --skip-* flags yourself and pray that you remembered to remove those flags if you changed something.
So the goals for the rewrite were:
- A proper incremental build system that feels professional.
- Be
lazyefficient - only redo work when things changed. - Something that runs happily on Windows, macOS, or Linux, on your computer or in CI.
- Owning the templates myself so the JS ecosystem changing every 6 minutes doesn’t break a build.
- Builds that work offline, like a “regular” build tool.
Toolchains and Targets like Rust
AI seems to really like Rust, so it must be a good idea to copy what they’re doing. In particular, now the network-heavy setup that doesn’t change between games is done once, like when you install a toolchain with rustup or a specific version of Python with uv:
mkcd2app toolchain install # installs the mkc CLI and warms the npm cache for the website template
mkcd2app target install 4.0.14 # warms mkc's compiler cache and downloads the simulator for that Arcade version
mkcd2app build "examples/Racers.yaml"
The YAML build configuration (which has changed) specifies which version of MakeCode Arcade will be used. (Almost) everything that needs the internet gets vendored at toolchain install and target install x.y.z time, so after that the website builds run npm ci --offline against the cached packages - MakeCode Arcade extensions are still fetched per game. mkc won’t cache extensions that don’t have a semver, and some extensions don’t have them.
Your game code can come from a share link, a GitHub repo, or a local folder (like if you are using the MakeCode Arcade for VS Code extension I mentioned in the last dev log hehe). Currently you can build to static (an assortment of HTML, CSS, and JS files) or static-singlefile (double-click an HTML file and it works - no internet needed). electron and tauri obviously are coming later.
Incremental Builds with redun
Under the hood, every step of the build is a task in redun, which is a Python library that figures out the dependency graph from how tasks pass results to each other, and caches every task’s output in a SQLite database.
Mermaid diagram of the build pipeline was generated by Claude.
If you rebuild without changing anything, the whole build comes straight out of the cache - change the title and some steps are skipped.
AI was very helpful in debugging and monkey patching parts of redun, such as path handling on Windows or directory hashing by file contents. Pydantic objects don’t pickle deterministically - that was fun to find out - so that breaks redun’s hashing. And each stage uses a fresh directory for caching instead of working all in one directory so hashes don’t go stale.
One big thing with caching: redun only sees what’s in your config file. If you edit the game in a local folder, push to the GitHub branch, swap out the icon file, etc., it doesn’t know, and you’ll be served the same build again in seconds. Run build with --full-rebuild!
Testing and CI
End-to-end tests are currently running in GitHub Actions, testing the toolchain and target installation and game compilation (of an empty game) in Windows, macOS, and Ubuntu on every PR - luckily they’re all green as of now! I’ve also modernized myself by using these fancy new tools such as a linter (ruff) and type checker (mypy).
What’s Built
This tool is not ready to use yet - it lives on stacked draft PRs, only the website outputs work, no README, and no polish at all. If you want to package a game up into an Electron or Tauri app, the old version on main is still the one to use!
- After installation of Python and Node.js, setup your toolchain and MakeCode Arcade targets with simple commands:
mkcd2app toolchain install mkcd2app target install 4.0.14 - Use a simple configuration file to build to static HTML or single-file HTML:
mkcd2app build "examples/Racers.yaml"# examples/Racers.yaml # See the full one at https://github.com/UnsignedArduino/MakeCode-Arcade-to-App/blob/toolchain/examples/Racers.yaml version: 1 project: name: Racers path_friendly_name: racers description: "Enjoy the high-speed thrills of car racing in MakeCode Arcade! For the MakeCode Arcade Mini Game Jam #3." author: Cyrus Yiu version: 1.3.2 title: "{NAME} v{VERSION}" inputs: # Can be share_link, github, or path code: type: share_link value: https://arcade.makecode.com/84426-33815-03715-00484 assets: # Icon is optional but highly recommended, it will be used as the favicon # and app icon icon: # Can be url or path type: url value: https://raw.githubusercontent.com/UnsignedArduino/MakeCode-Arcade-to-App/refs/heads/main/examples/Racers%20icon.png build_dir: "./examples/Racers-build" target: 4.0.14 outputs: - type: static - type: static-singlefile
What’s Next
Next posts may be more C3D or MakeCode-Arcade-to-App rewrite content:
- Testing
(more E2E, or adding unit or integration tests) - Building for Electron and Tauri and working out proper settings storage per OS
- Simplifying user installation
Definitely more planned. I’d also love to hear what you’d want out of a tool like this - which outputs you’d actually use or any other features you would want from this!
PRs below:
Follow this thread if you want to stay updated on MakeCode-Arcade-to-App’s rewrite or any other work by me!
AI Usage
See devlog #1 for why I use AI.
For this rewrite, AI was used for:
- Reviewed the old code base.
- Drafting and reviewing the rewrite plan and important decisions.
- AI implementing code for boring or “less important” parts.
- Reviewing code.
- Helping write and debug tests.
- Taking progress and outlining major points to talk about in this devlog.
Again, I’d say roughly 50/50 split for work done so far on the rewrite.
Unsigned, this is incredible.
Want to get your perspective on AI sometime. That’s a bit OT; we can chat separately another time.
Loved reading your post!






