YamScript is a game engine and scripting language that uses human-readable YAML as a block-based alternative to visual coding platforms like Scratch. It runs entirely in the browser using frontend JavaScript — no servers, no install, just code and play.
YamScript lets you define games using three sections:
meta: Game title, author, etc.sprites: Sprite names linked to uploaded image IDscode: Per-sprite logic, with functions likemotion-right,math-add, etc.
Instead of dragging and dropping blocks, you write clean, structured YAML that behaves like Scratch logic.
- ✅ YAML-based block logic
- ✅ Sprite-based 2D games
- ✅ Namespaced functions (like
motion-right,visibility-show) - ✅ Fully frontend – runs in-browser with no backend
- ✅ Perfect for learning logic without syntax errors
Sections:
meta: Game title and authorsprites: Define each sprite and its imagecode: Assign logic blocks to each sprite
Function Namespaces:
motion: Movement functions (motion-up,motion-right, etc.)visibility: Show/hide spritemath: Variable manipulation (math-add, etc.)event: Triggers (e.g.event-when-key-pressed)control: Flow control (control-repeat, etc.)
- Open
applepair.github.io/YamScriptin your browser - Write YAML code in the editor
- Click Run Game
- Watch your logic come to life
Made with 🧠 and 🍟 by ApplePair111
Licensed under the Apache License 2.0
See LICENSE for full text.
Ideas? Found bugs? Want to help expand YamScript?
Pull requests welcome — let’s build YAML-powered game scripting together.
This README was made by ChatGPT