Passer au contenu principal
Bluvy Tube
Appuyez sur Échap pour quitter le plein écran
Volume m
/
i
Mode Cinéma 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

Raccourcis clavier

Espace K
Lecture / pause
← →
Reculer / avancer de 5 s
J L
Reculer / avancer de 10 s
0–9
Aller à 0 %–90 % de la vidéo
Home End
Début / fin
, .
Image précédente / suivante (en pause)
< >
Ralentir / accélérer
↑ ↓
Volume
M
Couper / rétablir le son
C
Sous-titres
F
Plein écran
I
Image dans l’image
T
Mode cinéma
?
Afficher cette aide

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 vue Publié le 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 commentaires
?
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.
Voir le post d'origine sur Bluesky
Lien copié dans le presse-papier

Connexion

Il est temps de faire une pause

Ça fait 30 minutes que vous enchaînez les vidéos : accordez-vous 5 minutes loin de l'écran. Levez-vous, étirez-vous, buvez un verre d'eau… Les vidéos vous attendront ici.