Game feel

Effects and sounds combined for the moments that matter, so every action feels satisfying.

Try each example, then copy the words under it and paste them to your AI. You can also send your AI the link to an example.

Key moments

Ask for the feeling, and the agent picks the effects. These are good starting points.

Collect something

The coin flies to the score, the score pops, and a bright chime confirms it.

Tap the example to play it again, with sound.

Ask your AI

When the player collects a coin, make it fly in an arc to the score with a trail, pulse the score, and play a bright coin sound.

View code
game.animateTrail(coin, { durationMs: 400 });
game.animateArc(coin, score.x, score.y, 120, 400, () => {
  game.destroySprite(coin);
  game.animatePulse(score, 1.3, 200);
  game.playSound("pickup");
});

Get hurt

A shake, a blink while the player cannot be hurt again, and a low thud.

Tap the example to play it again, with sound.

Ask your AI

When the player gets hit, shake it, make it blink for a second while it cannot be hurt again, and play a low thud.

View code
game.animateShake(player, 18, 250);
game.animateBlink(player, 6, 1000);
game.playSound("hurt");

Defeat an enemy

The enemy crumbles away with a burst of sound.

Tap the example to play it again, with sound.

Ask your AI

When an enemy is defeated, make it crumble away from top to bottom and play a small explosion.

View code
game.animateDisintegrate(enemy, { direction: "top-to-bottom" });
game.playSound("boom");

Power up

The player grows for a moment, leaves a trail, and a rising sparkle plays.

Tap the example to play it again, with sound.

Ask your AI

When the player picks up a power-up, make it pulse bigger, leave a trail for a second, and play a rising sparkle.

View code
game.animatePulse(player, 1.5, 400);
game.animateTrail(player, { durationMs: 1000 });
game.playSound("powerup");

Win the level

Stars burst, the message bounces in, and a fanfare plays.

Tap the example to play it again, with sound.

Ask your AI

When the level is won, burst stars around the screen, bounce the "You win" title in, and play a victory fanfare.

View code
for (const star of stars) game.animateExplode(star, { speed: 400 });
game.animateBounce(winTitle, 80, 600);
game.playSound("win");