local function end_game(self)
msg.post(’.’, ‘release_input_focus’)
go,cancel_animation(’.’, ‘position.x’)
msg.post(’.’, ‘disable’) this is line 38
local function emitter_state_change(self, id, emitter, state)
if state == particlefx.EMITTER_STATE_SLEEPING then
msg.post(‘container’, ‘end_game’)
end
end
particlefx.play(’#explode’, emitter_state_change)
particlefx.set_constant(‘circle#explode’, ‘emitter’, ‘tint’, data.color_one)
msg.post(‘main:/sound#explode’, ‘play_sound’)
end