Image missing.
Nintendo DS code editor and scriptable game engine

created: Jan. 31, 2026, 6:27 p.m. | updated: Feb. 1, 2026, 6:50 a.m.

DS code editor & scriptable game engine 2026TL;DR I built a scriptable 3D game engine for the Nintendo DS so you can write and run games directly on the console itself. What you see is a scriptable game engine with a custom programming language featuring variables, loops, and conditionals. // Per-model draw calls (from main.c) for (i = 0; i < MAX_MODELS; i++) { if (!modelActive[i]) continue; glPushMatrix(); glTranslatef(modelX[i], modelY[i], modelZ[i]); glRotatef(modelAngle[i], 0, 1, 0); drawCube(CUBE_COLORS[modelColorIndex[i]]); drawWireframeCube(); glPopMatrix(1); } // Cube geometry: RGB15 color -> glColor3b, then 6 faces as GL_QUADS glColor3b(r * 255/31, g * 255/31, b * 255/31); glBegin(GL_QUADS); /* +Z face */ glVertex3f(-1.0f, 1.0f, 1.0f); glVertex3f( 1.0f, 1.0f, 1.0f); glVertex3f( 1.0f, -1.0f, 1.0f); glVertex3f(-1.0f, -1.0f, 1.0f); /* -Z, +Y, -Y, +X, -X ... (24 vertices total) */ glEnd();2. Bottom screen: Script editor (software rendered)A touch-based code editor with a custom UI drawn pixel-by-pixel to a 256x192 bitmap. Try it in your browser (Nintendo DS emulator)You can test the DS game engine build directly below.

12 hours, 53 minutes ago: Hacker News