/**
 * JavaScript起始代码
 */
function JavaScriptStarter() {
    return `
// ${_t('Execute before scene render')}
function init() {

}

// ${_t('Execute after scene render')}
function start() {

}

// ${_t('Execute each frame during running')}
function update(clock, deltaTime) {

}

// ${_t('Execute after program stopped')}
function stop() {

}

// ${_t('Listen to click event')}
function onClick(event) {

}

// ${_t('Listen to dblclick event')}
function onDblClick(event) {

}

// ${_t('Listen to keydown event')}
function onKeyDown(event) {

}

// ${_t('Listen to keyup event')}
function onKeyUp(event) {

}

// ${_t('Listen to mousedown event')}
function onMouseDown(event) {

}

// ${_t('Listen to mousemove event')}
function onMouseMove(event) {

}

// ${_t('Listen to mouseup event')}
function onMouseUp(event) {

}

// ${_t('Listen to mousewheel event')}
function onMouseWheel(event) {

}

// ${_t('Listen to resize event')}
function onResize(event) {

}
`;
}

export default JavaScriptStarter;