client/src/automaton.js

13 lines
304 B
JavaScript
Raw Normal View History

2018-11-17 19:07:58 +01:00
function Automaton(messaging, screen, session) {
var startMenu = ['New Game', 'Settings'];
if(session.hasSavedGame()) {
startMenu.unshift('Continue');
}
screen.menu(startMenu);
messaging.addEventListener(['Init'], function(game) {
console.log(game);
});
//messaging.send({tag: 'NewGame'});
}