Tesla coil — Free Pixel Art Effect & Sprite Sheet
A copper coil under a steel torus throws branching arcs that lash out in volleys and now and then strike the floor in a spray of sparks, lighting the metal and the ground. Free for commercial games (MIT): recolor it, scrub every frame and export a sprite sheet, GIF, APNG or engine-ready files right here in the browser.
Swap the ramp, mirror or rotate, reroll the seed, pick a backdrop — then download. Nothing leaves your browser.
Quick looks in the editor
Specifications
- Frame size
- 224 × 136 px
- Total frames
- 72
- Frame rate
- 30 fps (33 ms per frame)
- Duration
- 2.4 s per cycle
- Playback
- seamless loop
- Sprite sheet
- 1568 × 1496 px transparent PNG
- Sheet grid
- 7 × 11 cells of 224 × 136 px
- Empty cells
- 5 (padding at the end of the grid)
- Pivot (origin)
- (112, 120) px from the top-left corner
- Category
- Lightning
- Default ramp
- #120a33
- #2a1b78
- #4630c0
- #5a62f0
- #58a6ff
- #9ed8ff
- #e4f6ff
- #ffffff
Using Tesla coil in Godot 4, Phaser 3 and Unity
The export packs all 72 frames of 224 × 136 px row-major into a 1568 × 1496 px transparent PNG — 7 columns by 11 rows. Every engine below reads that same grid, and the Aseprite-style JSON that ships with the sheet lists each frame's rectangle and the pivot, so you never have to re-slice by hand.
Godot 4
The editor's Godot ZIP pairs the PNG with a SpriteFrames .tres holding 72 AtlasTexture regions at 30 fps with loop on. Keep both files in one folder, assign the .tres to an AnimatedSprite2D and import the texture with Filter set to Nearest.
It loops on its own — call stop() when the effect should end.
# pixjuice-lightning-tesla-coil.tres: SpriteFrames with 72 AtlasTexture frames of 224x136, 30 fps, loop true
var anim := AnimatedSprite2D.new()
anim.sprite_frames = preload("res://fx/tesla-coil/pixjuice-lightning-tesla-coil.tres")
anim.texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST
add_child(anim)
anim.play("default")
Phaser 3
The Phaser ZIP carries a JSON Array atlas next to the PNG. Load them together, then build the animation from the frame names in order:
// preload(): keep both files together
this.load.atlas("tesla-coil", "pixjuice-lightning-tesla-coil.png", "pixjuice-lightning-tesla-coil.json");
// create(): the atlas names its frames frame_0000 … frame_0071
this.anims.create({
key: "tesla-coil",
frames: this.anims.generateFrameNames("tesla-coil", { prefix: "frame_", start: 0, end: 71, zeroPad: 4 }),
frameRate: 30,
repeat: -1,
});
this.add.sprite(x, y, "tesla-coil", 0).play("tesla-coil");
Unity
Slice the sheet with Grid By Cell Size and the numbers below; keep the first 72 sprites and give each the same pivot. The editor's Unity ZIP includes them as slice-spec.json for the 2D Sprite package.
// Sprite Editor > Grid By Cell Size: 224 x 136 (7 columns x 11 rows)
// Keep sprites frame_0000 ... frame_0071 (5 empty cells at the end are padding)
// Pivot: 0.500, 0.118 (normalized, bottom-left origin)
// Filter Mode: Point Compression: None Max Size: 2048 Mesh: Full Rect
License: MIT, free for commercial use
Tesla coil is rendered by the open-source pixelfx library — MIT License, Copyright © 2026 Patch and Hugo Duprez, with parts adapted from Sprite Fusion's VFX and Hollow Crown. Use the sheets in commercial games, edit them and ship them; keep the MIT notice with any source you redistribute. No account, no upload, no attribution screen.
FAQ
How many frames does the Tesla coil effect have?
72 frames at 30 fps — seamless loop, 2.4 s per cycle. The packed sprite sheet is 1568 × 1496 px, laid out as 7 × 11 cells of 224 × 136 px.
Does Tesla coil loop seamlessly?
Yes. Its 72 frames tile into a 2.4 s cycle, so the last frame hands back to the first without a jump — set the animation to repeat in your engine and let it run for as long as the Lightning effect is needed.
Is Tesla coil free for commercial use?
Yes. pixelfx is MIT-licensed, so the 224 × 136 px sheet you export can ship in a commercial game with no fee and no attribution screen. Keep the MIT notice if you also redistribute the effect's source code.
Can I change the colors of Tesla coil?
Yes. The editor swaps the 8-stop default ramp for any of 27 preset ramps, a Lospec palette or your own hex stops, resampling it to the same number of steps so the shading survives. Save the palettes you like, then apply one to a whole batch of effects at once.
What does the export panel produce?
A transparent PNG sheet with an Aseprite-style JSON sidecar (frame rectangles, durations, pivot), a GIF, a lossless APNG, a Godot 4 .tres, a Phaser 3 atlas, a Unity slice spec, the effect's JavaScript source and a matching sound effect — all rendered in the browser from the same frames shown on this page.
Ball lightning
136 × 104 · 120 frames · seamless loop
Electrified
108 × 92 · 60 frames · seamless loop
Plasma ball
112 × 104 · 90 frames · seamless loop
Spark arc
124 × 120 · 60 frames · seamless loop
Storm cloud
168 × 176 · 90 frames · seamless loop
Chain lightning
248 × 104 · 55 frames · one-shot