mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-26 06:56:45 +01:00
15 lines
365 B
Text
15 lines
365 B
Text
|
/// @description Insert description here
|
||
|
draw_set_color(COLORS._main_accent);
|
||
|
var r = max(1, life / 20 * size);
|
||
|
|
||
|
random_set_seed(seed);
|
||
|
|
||
|
for( var i = 0, n = array_length(parts); i < n; i++ ) {
|
||
|
draw_circle(parts[i][0], parts[i][1], r, false);
|
||
|
|
||
|
parts[i][0] += speeds[i][0];
|
||
|
parts[i][1] += speeds[i][1];
|
||
|
speeds[i][1] += 1;
|
||
|
}
|
||
|
|
||
|
if(--life <= 0) instance_destroy();
|