Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Who knew electricity could be so juicy?

Very nice game feel!

How did you make the electrical currents look so nice? 

(+3)

Hi spoonsweet, thanks for playing! Each beam is made of 3 Line2D nodes. Each Line2D has a starting and an ending point. In between those points, I sample extra points (e.g. I used a 10 pixel step). For each of these extra points, I randomly offset their position over the axis perpendicular to the main line's direction within a range. This will give you a jagged line, which I recreate every X milliseconds. I use different frequencies on the 3 different lines. Then I also randomize their Line2D width curve parameter, to randomly make the line thicker or thinner in different sections. Finally, I use additive blend mode on the CanvasMaterial and a slightly transparent modulate.

(+1)

Wow! Such a detailed explanation and analysis! Thank you so much for sharing! This is great!