
Nothing loads until you press Play. Runs on portals.ai-play.games
Portals
Place a teal and a magenta portal, then walk, jump and throw cubes through seamless, recursive see-through portals.
Screenshots
About this game
Written by the game's author.
Two oval portals stand on an endless grey-box grid. Each one shows a seamless, recursive view out of the other, up to six levels deep. You, the cubes and anything you throw pass straight through, and a cube halfway through one portal sticks out of the other.
Place portals on any floor you aim at, grab cubes, and throw them through. Press G for debug visuals: colliders, portal planes, the virtual portal cameras and the recursion depth. Until your first input, the game throws cubes through the portals by itself.
Made with the AI Game Dev CLI: every line of code, shader and sound was written by its agent. There are no asset files; geometry, materials, effects and audio are all generated in code.
Controls
- Start: click to capture the mouse
- Look: mouse · Move:
W A S D/ arrows (Shiftto sprint) · Jump:Space - Teal portal: left click /
Q/1· Magenta portal: right click /2 - Grab or drop a cube:
E(orF); left click throws it - Reset:
R· Debug:G· Hide HUD:H· Mute:M - Touch: drag on the left half to move, on the right half to look; on-screen buttons place portals, grab and jump
- Autoplay: open with
?demo=1, pressDbefore capturing the mouse, or tap DEMO
Embed this game
Paste this into your own page. The game runs on its own domain, sandboxed.
<iframe src="https://portals.ai-play.games/" width="960" height="540" title="Portals" allow="fullscreen; gamepad; autoplay; xr-spatial-tracking" sandbox="allow-scripts allow-same-origin allow-pointer-lock allow-forms allow-popups allow-modals allow-downloads allow-popups-to-escape-sandbox" allowfullscreen loading="lazy"></iframe>

