Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_susiezilla_fire_Draw_0

(view raw script w/o annotations or w/e)
1
if (flamecon == 1)
2
{
3
    wave_siner++;
4
    flamesiner++;
5
    if (!surface_exists(mysurface))
6
        mysurface = surface_create(640, 160);
7
    surface_set_target(mysurface);
8
    draw_set_alpha(0.25);
9
    draw_set_alpha(flamealph);
10
    for (i = 0; i < wave_maxa; i += thickness)
11
        draw_sprite_part(spr_gameshow_stage_fire, 0, 0, i * thickness, 400, thickness + 2, -10 + (sin((wave_siner + (i * 8)) / 30) * 12), (i * thickness) + (sin(flamesiner / 16) * 3));
12
    draw_set_alpha(1);
13
    surface_reset_target();
14
    draw_surface_ext(mysurface, camerax(), cameray() + 80, 3, 3.5, 0, c_white, 1);
15
    draw_surface_ext(mysurface, camerax(), cameray(), 3, 3.5, 0, c_white, 1);
16
    draw_surface_ext(mysurface, camerax(), cameray() - 80, 3, 3.5, 0, c_white, 0.8);
17
}