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!
Create your own HTML5 game
Learn how to create a game in HTML5 and JavaScript with this tutorial series. Start with a blank canvas and work through the core principles of game development.
Get started!Use our free tools
Handy helpers for your animations, your files and your to-do list.
Highlighted projects
Simulate a flock of birds
In JavaScript, step by step
Free pen brushes for Affinity Designer
Available for download
Scribble
Free to-do list and notes app
Easing functions
For JavaScript and CSS
Create life on the canvas
With Conway's Game of Life
Folder Compare
Spot the differences between folders
Find the shortest path
With A* in JavaScript
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 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
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
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
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*.
From the free tutorialFind the shortest path with A* and other pathfinding algorithms
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
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.
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.
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.
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.
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.
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.
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.
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 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.
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.
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.
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 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 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!
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 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.