Spicy Yoghurt

All about game development

Spicy Yoghurt is a small game studio. Learn how to make your own game in JavaScript and HTML5 with our free tutorials, full of live examples. Or take a break with our casual game Pixi Pop. And while you're here, check out our free browser tools.


For now, Spicy Yoghurt runs on spare time and the occasional donation, so every bit of support is appreciated. You can also help keep this studio going by playing and sharing!

Play casual games

Pixi Pop

The 2018 original, ready to play

An evil force is corrupting a magical forest. You're a Pixi, the only creature it can't touch. Pop your way through the forest and save the day in this action game. Defeat challenging bosses and unlock new skills to become the most powerful Pixi of them all!

Highlighted projects

Simulate a flock of birds

In JavaScript, step by step

Follow this tutorial to make a group of objects move as a flock. Using just three simple rules, they swirl together like real starlings.

Free pen brushes for Affinity Designer

Available for download

Create your own pen art on a digital canvas with these high-resolution pen brushes.

Scribble

Free to-do list and notes app

Keep your to-dos, notes and plans for the week in one calm place. Use it in your browser or install it on your phone, no account needed.

Easing functions

For JavaScript and CSS

Easing makes things speed up and slow down as they move, so they don't look stiff. Find the right easing for your animation or game. Use our easing tool to see each easing function in action and make your project come to life.

Create life on the canvas

With Conway's Game of Life

Follow this tutorial to build the famous Game of Life on the canvas and watch a grid of cells evolve, generation after generation.

Folder Compare

Spot the differences between folders

Compare two folders and see right away which files were added, changed or removed. Your files never leave your computer. Handy for checking your builds, backups and asset folders.

Find the shortest path

With A* in JavaScript

Follow this tutorial to help a mouse find its way to the cheese: around hedges, through mud and away from a hungry cat.

Get the complete projects

Almost everything on Spicy Yoghurt is free, from the tutorials to the tools. A few special projects are available as premium downloads, each with all the code and assets of a game or demo. They're yours for a small donation, which helps us keep making free tutorials.

Pollen Rush: your bee collects pollen, with the swarm of other bees in a corner

Pollen RushPremium download

Complete HTML5 game source code

Pollen Rush is a small bee game made with plain JavaScript and the HTML5 canvas. You steer your bee across a meadow, collect pollen and dodge a swarm of other bees that grows with every wave.

From the free tutorialFinish and publish your HTML5 game

Get the code For a small donation

Complete Game of Life source code

Yoghurt Culture is a colorful version of Conway's Game of Life, made with plain JavaScript and the HTML5 canvas. Four colonies of cells grow and fight for space in a petri dish, and you can draw your own cells with the mouse or your finger.

From the free tutorialCreate Conway's Game of Life in JavaScript

Get the code For a small donation

Complete flocking simulation source code

Flock Lab is a flocking simulation made with plain JavaScript and the HTML5 canvas. A flock of starlings, a school of fish or a flock of sheep moves as one, flees from a predator and steers around obstacles you place, all driven by the classic boids rules.

From the free tutorialSimulate a flock of birds with boids in JavaScript

Get the code For a small donation

Complete pathfinding source code with A*, Dijkstra and BFS

Pathfinding Lab is a playground for pathfinding algorithms, made with plain JavaScript and the HTML5 canvas. In a garden of hedges and mud, four algorithms find the way from a mouse to a piece of cheese: breadth-first search, Dijkstra's algorithm, greedy best-first search and A*.

Complete source code for a four-in-a-row AI

Minimax Arena is a game of four in a row against an AI, made with plain JavaScript and the HTML5 canvas. The AI looks ahead with the minimax algorithm, and you can change any of its settings while you play.

From the free tutorialBuild an unbeatable tic-tac-toe AI with minimax

Get the code For a small donation

Try new tutorials

A perforated metal plate covered in colorful graffiti
Creative coding | 29 November 2026

Image dithering in JavaScript: from a simple threshold to Floyd–Steinberg

Learn how Floyd–Steinberg dithering works by building it in JavaScript, and compare it with Bayer and Atkinson dithering. On an HTML5 canvas, reduce a photo to black and white or a retro color palette, such as the original Game Boy's four shades of green.

A mosaic of irregular tiles
Creative coding | 29 November 2026

Voronoi diagrams and Delaunay triangulation in JavaScript

A Voronoi diagram splits a canvas or a map into cells around a set of points, so every spot belongs to the point closest to it. Build one step by step in JavaScript, and use it for game maps, mosaics and stipple art.

A bookcase full of books, the original database
JavaScript | 29 November 2026

How to use IndexedDB in JavaScript

IndexedDB is a database built into every browser. Learn when it's a better choice than local storage, and how to use it in JavaScript with async/await. You'll store objects and images, find them with an index and keep your data from being deleted.

Sound effects and music for your game
HTML5 game | 29 November 2026

Add sound effects and music

Learn how to add sound effects and music to your JavaScript game with the Web Audio API. Play several sounds at once, control their volume and panning, make a sound a little different every time it plays and create your own sound effects in code. By the end of this tutorial, the bee game from this series will have sound effects and its own music.

A handheld game console
HTML5 game | 29 November 2026

Manage game states with a simple state machine

Learn how to add game states to your JavaScript game, from the start screen to game over. Build a simple state machine without a game engine, pause the game and restart it cleanly. By the end of this tutorial, you'll have a real game with a score, lives and a high score to beat.

An arcade joystick
HTML5 game | 29 November 2026

Build game controls for keyboard, mouse and touch

Learn how to add keyboard, mouse and touch controls to your JavaScript game. Move a player smoothly with the arrow keys or WASD, drag objects with pointer events and build a virtual joystick for phones. By the end of this tutorial, you'll be flying your own bee through a swarm of other bees.

Prepare a blank canvas
HTML5 game | 29 November 2026

Set up an HTML5 canvas game

Set up an HTML5 canvas for your game with JavaScript. Learn how to scale the canvas to fit any screen, without blurry graphics. By the end of this tutorial, you'll have a canvas template to start every game with, and your first graphics on the screen.

Dice, the oldest random number generator
JavaScript | 29 November 2026

Generate random numbers in JavaScript

Generate random numbers in JavaScript with Math.random(). Get a random integer between two numbers, a random boolean or a random item from an array. Build your own random number generator, shuffle an array, give rare loot a small chance and get the same random numbers again with a seed.

Store data
JavaScript | 29 November 2026

Store data with HTML5 local storage

Learn how to use HTML5 local storage to store data in the browser with JavaScript. Store and read strings, numbers and entire objects with setItem() and getItem(), and remember settings and progress between visits. Find out about the limits, the pitfalls and when to use sessionStorage instead.

News and updates

Big update for our game development tutorials
Spicy Yoghurt | 1 November 2026

Our game development tutorials got a big update

We've reworked all our game development tutorials, and together they now have more than 100 live examples to play with. Tweak an example and watch its code change along with it, or write your own code in a playground and see the result right away. Our easing tool and the homepage got a makeover too.

Scribble to-do list app on desktop and mobile
Spicy Yoghurt | 26 September 2026

Meet Scribble, our free to-do list and notes app

Meet Scribble, a free to-do list and notes app by Spicy Yoghurt. Plan your days and keep notes for your projects, on your computer or on your phone. There's no account to create, and everything you write stays on your own device.

Folder Compare by Spicy Yoghurt
Spicy Yoghurt | 29 August 2026

Compare folders and files right in your browser

Spicy Yoghurt has a new free tool: Folder Compare. Point it at two folders and see right away which files were added, changed or removed. Everything runs inside your browser, so none of your files ever leave your computer.

Pixi Pop now playable in your browser
Spicy Yoghurt | 22 August 2026

Pixi Pop is now playable in your browser

Pixi Pop has been ported to the web! This classic Spicy Yoghurt game is now playable straight from your browser. No app store needed. Just open a tab and start popping.

Free Affinity Designer pen brushes
Spicy Yoghurt | 19 June 2021

Free download: new pen brushes for Affinity Designer

Spicy Yoghurt has released its first brush pack for Affinity Designer. And the good news is, it's available as a free download. With these pen brushes, you can draw on a digital canvas just like you would with a real pen. Try them out now!

Vector art with Affinity Designer
Spicy Yoghurt | 6 June 2020

Hello Affinity Designer, goodbye Inkscape?

Not too long ago Spicy Yoghurt wrote about the good and the bad of the Inkscape v1.0 beta version. The open-source vector drawing software is now out of beta and officially released to the public. It made decent progress, but was it enough to stay our favorite drawing software?

Pixi Pop v1.2 update
Spicy Yoghurt | 7 May 2020

Pixi Pop 1.2 update - Good news for new players

Pixi Pop version 1.2 is out! This new update brings interface changes to make the game more fun and easier to use. Check out this article to find out what's new.

Follow our journey

Day at the beach Banana-pepper Rocket trip Desert view
Spicy Yoghurt logo