Build a Scene
RPU combines declarative scenes with lightweight scripting. You describe what is on screen, attach behavior where it belongs, and run it through the CLI.
Start with a single sprite:
scene Main { sprite Hero { pos = (48, 56) texture = "hero.png" color = #f4f8ff }}- Creates a scene named
Main. - Places a sprite called
Hero. - Draws
hero.pngwith a starting position and tint.
Add Behavior
Then attach a script directly to the same node. The scene still owns structure. The script only owns behavior.
scene Main { sprite Hero { pos = (48, 56) texture = "hero.png" on update(dt) { if input_left() { self.x = self.x - 120.0 * dt } } }}That is the core RPU model: scene files describe what exists, scripts describe what changes, and the CLI builds and runs the project.
