Source: control/controlStart.js

/**
 * @author    Wolfgang Kowarschick <kowa@hs-augsburg.de>
 * @copyright 2017 - 2018
 * @license   CC-BY-NC-SA-4.0
 */

/**
 * @module control/controlStart
 */

import {startGame} from '../logic/logic';

/**
 * @function controlStart
 * @static
 *
 * @param {ViewCircleSprite} p_start - the view of the start button
 */
function controlStart(p_start)
{ p_start.addEventListener('pointerdown', () => startGame()); }

export {controlStart};