Tyrbo Make your game

Free VFX for games: fire, magic, hits and screen looks

Effects are what make a hit feel like a hit: a burst of sparks, a flash, a puff of dust where a jump lands. The effects on this shelf are ours, made for three.js games and released under CC0. Each is one small JavaScript module with a demo page, built to run on a phone: pooled particles, one draw call where it can be, nothing made fresh each frame.

Particles, shaders and screen looks

Three kinds live here. Particle effects (fire, smoke, sparks, magic, weather) draw many small sprites that are born, move and fade. Shader effects (water, sky) draw a whole surface with code on the GPU. Screen looks (pixelate, CRT scanlines, a toon outline) redraw the finished frame, so they change a game's whole style in one place.

Using one in your game

Import the module, make it with your scene and its options, and call update(dt) once a frame with the seconds since the last. Fire a burst where something happens, and call dispose() when its scene goes. Open demo.html from the download to watch it run and try its options before you wire it in.

Effects that stay fast on a phone

A phone's GPU spends most of its time on pixels, so an effect costs as much as the screen it covers, times the layers on top of each other: soft smoke over the whole view costs more than a thousand tiny sparks. Keep particles small, cap how many live at once, use additive blending for light (fire, magic) so their order doesn't matter, and turn effects down rather than off on older phones.

Timing makes the effect

Most of an effect's punch is its timing. A hit flash lasts a few frames, not a second; sparks fly fast and slow down; smoke rises slowly and spreads. Pair an effect with a sound and a small camera shake, and a little one reads as big.

Questions people ask

Do these effects work outside three.js?

They import three.js and are written for it. The ideas, pooled particles, additive blending and a full screen pass, carry to any engine, and the code is CC0 to port.

Can I change the colors and sizes?

Yes. Each effect takes options for color, size, speed and count, listed in its README, and you can edit the module itself.

Do I need to credit Tyrbo?

No. They are CC0, like everything in the library.

Make a game with them

Make your game

Sign in to get the plan and its concept art. Both are free.