Richard's Arcade Tips #2 - Drawing custom stuff with Images

my attempt:

2 Likes

@richard Can I use some of the desert wave effect code for something I’m doing?

3 Likes

@OrigamiArtist yup, in general any example code i post on the forum is fair game!

4 Likes

Thanks

3 Likes

Ive made this particle system some time ago

In this example you can spawn a fire with B and lightning with A

It has:

Particles: position, velocity, acceleration/friction, color, lifetime

Fire: size, strength, smokeness (or spawn individual fire particles)

Lightning: start, end, segment length, max widht, color

3 Likes

The lightning is so cool!

1 Like

I was just looking for a good lightning extension and found yours! do you mind if I use it in my first Sprite Stars game?

5 Likes

Surely use it if you want to!

I was thinking about updating the particle system, i have i few optimizations in mind, but the lightning will be likely unchanged! You can just copy the functions, create a sprite that coveres the whole screen.

4 Likes

thanks, I appreciate it! I can credit you in my game if you’d like

3 Likes

You dont need to

1 Like