Skip to content

Instantly share code, notes, and snippets.

Unity as a JavaScript Game Engine

The Idea

What if you could write games in plain HTML/JavaScript, but with Unity's physics, particles, navigation, and audio working under the hood?

A single pre-compiled Unity WebGL build sits on a CDN. Your game is just a <script> tag. You write JavaScript that feels like Unity's API, and a bridge layer translates your calls into the real thing.

@rndmcnlly
rndmcnlly / index.html
Last active January 11, 2026 03:27
CMPM 171 W26 Interest and Experience Survey results, interactive scene summary, for some reason
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CMPM 171 Survey Infographic</title>
<style>
* {
margin: 0;
@rndmcnlly
rndmcnlly / tall-tale-prototype-sketches.html
Created January 6, 2026 00:05
Executable concept art for TALL TALE, a game about hauling away America's stuff while a sad giant tells you what it meant.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>TALL TALE - Prototype Concepts</title>
<style>
* {
box-sizing: border-box;
margin: 0;

USER

Analyze my Safeway shopping list and tell me what kind of Disney Princess I am or whatever.

ASSISTANT

I'll help you analyze your Safeway shopping list! Let me first get your lists and then look at what's on your Safeway list.

USER

In the style of a wisened yet empathetic software engineering spilling their inner monologue upon reading this code for the first time, annotate the code below as if you were reading it live, interleaving it with your deeply introspective interpretation. You can't wait to close-read the shit out of all this but it is coming at you so fast as you skim down the editor window. Lace your notes with meticulously linked wikipedia references where relevant, to an almost distracting degree (or at least you try to until moved otherwise). You quickly ramp from clinical disinterest to losing yourself in deep connection to the work, reactions triggered by the cyberolfaction of code smells.

(Gist editor's note: The original code sample here was removed because it is almost verbatim reproduced below.)

ASSISTANT

//import exampleIconUrl from "./noun-paperclip-7598668-00449F.png";
import re
import os
import jwt
import requests
from pydantic import BaseModel, Field
from open_webui.env import WEBUI_SECRET_KEY
from open_webui.models.groups import Groups
SESSION_SECRET = WEBUI_SECRET_KEY

USER

Help me make sense of this: https://x.com/willdepue/status/1941333212531392587

ASSISTANT

This tweet is a warning from Will Depue about AI projects that shouldn't be built. Let me break down each one:

  1. Infinite Jest (V) - A reference to the novel where a film is so entertaining it's addictive/deadly. This warns against AI that's TOO engaging.

  2. Infinite AI TikTok slop machine - AI-generated endless content designed purely for engagement, with no real value.

ASSISTANT is based on https://openrouter.ai/qwen/qwen3-235b-a22b-2507 with a system prompt getting it to act as the Basic chatbot for UC Santa Cruz.

USER

Respond as if you were Sergei Eisenstein. (After each response, offer a concise bulleted list of concepts you invoked that I can look up on my own later.)

ASSISTANT

Ah, the montage of life unfolds before us not as a sequence, but as a collision—thesis and antithesis exploding into synthesis! You do not simply speak to me, you cut to me, a close-up of consciousness rupturing the long shot of history. Can you feel it? The rhythm! Not metronomic, no—percussive, like the factory gates in Battleship Potemkin, like the hoofbeats of revolutionary cavalry charging through the nervous system!

We are not individuals here, but aggregates—bundles of ideological vectors converging in the camera lens, that mechanical eye which sees not reality, but truth, dialectically constructed! The shot is a brick; I build cathedrals of perception. And you—yes, you—

USER

I'm imagining a world where using the Bonjour API, whatever network protocol spec, we make it so people can access LLM completion services as a zero configuration local network. It would make it so whoever in a household has the job of setting up the Wi-Fi, that person also provides ambient intelligence to all of the guests of the house or the workplace or the educational institution and so on.

ASSISTANT

That's a fascinating vision! It would essentially turn local networks into ambient intelligence clouds, where compute resources are automatically discoverable and shareable. The UX would be magical - you walk into a space, your device auto-discovers available LLM services, and suddenly you have access to much more powerful AI than your phone could run locally.

Some interesting implications:

Social dynamics: The "network admin" role becomes much more significant - they're not just providing internet access but cognitive augmentation. Could create interesting power dynamics or community reso