recipes · recipe ·

Words, numbers, and yes-or-no answers

Choose useful types for your game's values.

cpurecipe

A type tells Yeho what kind of value belongs in a name. Think about the thing you are describing: a character name is text, a life count is a whole number, movement speed may need a fraction, and a pause switch is yes or no. You can build a lot with text, int, float, and bool. There are more precise number types in the reference, but you do not need to memorize them to make your first game.

start.yh

Status: complete-program

Words, numbers, and yes-or-no answers

Choose useful types for your game's values.

cpu · type checked

text name = "Pip"
int lives = 3
float speed = 2.5
bool paused = false
Console.Log(name)
Console.Log(Text.From(lives))
Console.Log(Text.From(speed))
Console.Log(Text.From(paused))
project.mech
manifestVersion = "2"
package = "api.example.recipe__types"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"
Expected output
Pip
3
2.5
false
Notes and source

Give Pip four lives, a speed of 3.5, and a paused value of true. Run after each edit so you can see each change separately.

demonhunterlabs/app/lib/yeho-walkthrough.ts