1 |
surf_screen_copy = surface_create(surface_get_width(application_surface), surface_get_height(application_surface)) |
2 |
surf_screen_noloop = false |
3 |
h_number = 10 |
4 |
v_number = 10 |
5 |
total_number = h_number * v_number |
6 |
h_width = 320 / h_number |
7 |
v_height = 240 / v_number |
8 |
timer = 100 |
9 |
var v = 0 |
10 |
var h = 0 |
11 |
for (var i = 0; i < total_number; i++) |
12 |
{ |
13 |
if (h > (h_number - 1)) |
14 |
{ |
15 |
h -= h_number |
16 |
v += 1 |
17 |
} |
18 |
piece_x[i] = h_width * h |
19 |
piece_y[i] = v_height * v |
20 |
piece_hsp[i] = choose(-1, 1) |
21 |
piece_vsp[i] = -4 |
22 |
h += 1 |
23 |
} |
24 |
piece_grav = 0.5 |
25 |
audio_play_sound(snd_glass_smashable_large_break, 1, 0) |