Recipes
Recipes
Worked examples of features you will build on almost every table. Each recipe is a small, self-contained block of HCL you can paste into a .cade file and adapt — and a pointer to the concept page that explains the machinery behind it.
These assume you can already load and run a table. If not, start with Getting Started and Table Design Basics.
A few classic features — ball save, tilt, attract mode, and high-score entry — don’t have a dedicated block in Cade yet. You can build them from the primitives shown here (variables, conditions, modes, and the ball lifecycle), so they’ll join the cookbook once there’s a clean pattern worth recommending.
- Pop Bumper & Spinner Scoring
Score every hit, then pay a bonus when hits cluster into a burst or the spinner spins fast.
- Starting Multiball
Eject a second ball, start a multiball mode, and end it cleanly when the balls drain back to one.
- Combo Shots
Reward a sequence of shots made in time with a signal, plus credit for each shot along the way.
- Playfield Multipliers
Boost a group of scoring rules at once by routing them through a shared multiplier variable.
- Lighting an Insert on a Condition
Turn an insert on when the player qualifies a shot, and keep the light in step with its variable.
- Random & Mystery Awards
Award a random value on a mystery shot using the noise generator's formula functions.