Make Items and Boops react, remember, and change.
Sugar is JOI's programming language for defining what your creations do. Control text and media, build games, change Items, move Lore, and connect behavior across an App.
Where should I start?
Learn Sugar from zero
Follow Sugar in order, from values and variables to memory, logic, output, Apps, and Automations. No programming experience needed.
Begin the lessonsStart from working code
Copy complete examples for social Boops, evolving Items, random games, Apps, Automations, and Lore interactions.
Explore the examplesDefine the whole interaction in code.
An action can keep its variables, conditions, text, and behavior together. Begin with one response, then add memory and logic without rebuilding the creation through separate forms.
SUGAR
action greet -> "Greet" {
text "@1 gives @2 "+
Rand::pick("a kiss", "a playful bite", "a tight hug")+".";
}Already know Sugar 1? See what changed in Sugar 2.