Skip to main content
Bluvy Tube
Press Esc to exit fullscreen
Volume m
/
i
Theater mode t
f
/
Gamedevs, how do you create your (pixel perfect) chain lightning? Here is an example where I create the texture during runtime, placing all the pixels according to some calculations and parameters (flicker, jaggedness, etc.). #ScreenshotSaturday #IndieDevs

Keyboard shortcuts

Space K
Play / pause
← →
Back / forward 5 s
J L
Back / forward 10 s
0–9
Jump to 0%–90% of the video
Home End
Start / end
, .
Previous / next frame (while paused)
< >
Slower / faster
↑ ↓
Volume
M
Mute / unmute
C
Captions
F
Fullscreen
I
Picture-in-picture
T
Theater mode
?
Show this help

Gamedevs, how do you create your (pixel perfect) chain lightning? Here is an example where I create the texture during runtime, placing all the pixels according to some calculations and parameters (flicker, jaggedness, etc.). #ScreenshotSaturday #IndieDevs

0 views Published on 14/11/2026 08:35 0:07
#screenshotsaturday #indiedevs
Gamedevs, how do you create your (pixel perfect) chain lightning? Here is an example where I create the texture during runtime, placing all the pixels according to some calculations and parameters (flicker, jaggedness, etc.). #ScreenshotSaturday #IndieDevs
2 comments
?
Generating the effect at runtime is an interesting approach. You get the flexibility to vary each strike while keeping control over the pixel structure. That's a tricky balance with pixel art.
One option to test: jitter a few intermediate points between targets, then draw the connecting segments onto your pixel grid: xlinux.nist.gov/dads/HTML/br.... Does your current method build a path first, or calculate the pixels directly?
Bresenham's algorithm
Definition of Bresenham's algorithm, possibly with links to more information and implementations.
View original post on Bluesky
Link copied to clipboard

Sign in

Time to take a break

You've been watching videos for 30 minutes straight: give yourself 5 minutes away from the screen. Stand up, stretch, grab a glass of water… Your videos will be right here when you're back.