Create a new scene
create_sceneCreates a new scene with slugified folder name, uppercase type, and optional size; prevents name collisions and resets engine configuration when type changes.
Instructions
Create a new scene folder + scene.gbsres under project/scenes/. Name is slugified for the on-disk folder; collisions get _2/_3 suffixes. Scene type must be uppercase (TOPDOWN, PLATFORM, ADVENTURE, POINTNCLICK, SHMUP, LOGO) — changing type later resets engine configuration, so pick deliberately. Size defaults to 20×18 tiles (one screen); scenes >20×18 scroll. Does not create a background — pass backgroundId of an existing background, or set it empty and add one later.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name — also seeds the slug. | |
| type | Yes | Scene type (uppercase). Controls the engine behaviour for this scene. | |
| width | No | Tiles wide. Default 20, max 255. | |
| height | No | Tiles tall. Default 18, max 255. | |
| symbol | No | Override auto-generated GBVM symbol. | |
| backgroundId | No | Background resource id (UUID). Empty string allowed; scene will build but render a missing-background placeholder. |