Render the scene as ASCII text
Updated
The camera’s ASCII effect redraws a sunny courtyard as text characters. Buttons switch between the full-colour look and a green terminal, and between fine and coarse cells.
Press Colour, Terminal or Coarse, and orbit the camera to watch the characters follow the shapes. Drag to orbit the camera, scroll to zoom.
Render the scene as ASCII text
#pragma lifecycle(startup, update)
const LOOKS = { 'ascii/colour': { color: undefined, cellSize: 12, invert: false }, 'ascii/terminal': { color: '#4ade80', cellSize: 12, invert: false }, 'ascii/coarse': { color: undefined, cellSize: 24, invert: false },};let ball;
function startup() { const ascii = findEntity('Main Camera').getComponent(AsciiEffectComponent); ball = findEntity('Amber Ball'); for (const [signal, look] of Object.entries(LOOKS)) { on(signal, (event) => { if (event.eventType !== EventType.UIButton.Press) return; ascii.setProps(look); log('ASCII look:', signal.split('/')[1]); }); } log('Characters, dark to bright:', ascii.props.characters);}
function update(dt, time) { ball.position.y = 0.5 + Math.abs(Math.sin(time * 2)) * 0.6;}Open it in XR Creator
Section titled “Open it in XR Creator”Download the project file below, then import it in XR Hub with Projects › New › Import, as described in Projects and templates. It opens in XR Creator with the same scene you see running above, each script already attached to its Behavior entity. From there you can edit the scripts, adjust components and their props, preview your changes, and deploy the result as a world of your own.
AsciiTerminal.xrproj