Skip to content

Conversation

@himahuja
Copy link

@himahuja himahuja commented Jul 8, 2017

When the program starts, this code automatically calls savegame, hence the following log occurs:

screen shot 2017-07-09 at 4 56 05 am

UI.btnSave.on('click', savegame());
screen.key(['o', 'O'], savegame());

So, changing it to a function call, solves the issue. We can also do the same for the 'click'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant