Skip to content

How can i restart the game without having to refresh the page? #21

@pokhrelashok

Description

@pokhrelashok

game.setVariable(constant.successCount, 0) game.setVariable(constant.failedCount, 0) game.setVariable(constant.gameScore, 0) game.setVariable(constant.hardMode, false) game.setVariable(constant.gameStartNow, true)

I can use these variables to reset the values but how do i go about starting the game from start without creating a new instance of the game?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions