Examples and recipes
Every gallery entry is a complete cartridge under cartridges/<slug>/.
Learn one idea at a time
starter.tyntcovers lifecycle, movement, A/B input, and score.shapes.tyntdemonstrates every drawing primitive.sprites.tyntdraws the tynt mark and a two-frame character.coin-dash.tyntcombines sprites, tile maps, camera movement, timers, collisions, randomness, and audio.platformer.tyntdemonstrates gravity and platform collision.snake.tynt,pong.tynt, andasteroids.tyntare compact complete games.
Fixed HUD with a moving camera
camera(playerX - 76, 0);
sprite(HERO, 8, 8, playerX, playerY, 0);
camera();
text("SCORE " + score, 6, 6, 3);Deterministic timing
if (every(30)) tone(440, 50, 0.08);
if (after(60 * 10)) text("TIME", 68, 68, 3);