This is an example for an easy to use particle system.
to use it in your own cartridge do the following: copy the code in tab1 into one of your code tabs
Use it in the project as follows:
function _init() init_particles() end function _update() update_particles() if btnp(🅾️) then particle_burst( {x=63, y=63}, //pos on screen 10, //num of particels 2, //life time (in sec) 0, //form 0=rnd 1=pixel,2=circles,3=rect 2, //size 3, //color 2 //speed of particles ) end end function _draw() cls() draw_particles() print("press 🅾️ for burst", 32, 40, 7) end |
[Please log in to post a comment]