iamkun / iamkun/tower_game

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

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.6k
Forks
448
PR merge metrics
No merged PRs in 30d

Description

` 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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the game instance and the five setVariable calls shown in the issue, then trace how gameStartNow is handled when a round begins. Determine the existing restart entry point and define completion as returning the game to its initial state without refreshing the page or creating a new instance.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
game-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.