AndreVarandas / AndreVarandas/memoria-leonina

Implement Countdown Timer

Open
#5 6 comments 0 reactions 0 assignees View on GitHub
enhancement hacktoberfest timer
Dominant language
JavaScript
Stars
0
Forks
1
PR merge metrics
No merged PRs in 30d

Description

### Objective
To enhance the challenge and excitement of the game, we aim to implement a countdown timer that will require players to complete the game within a specified time limit.

### Tasks:

- **Timer Display**: Create a timer display on the game interface, preferably at the top or bottom, clearly visible to players.

- **Countdown Functionality**: Implement the logic for a countdown timer that starts when the game begins and counts down from a specified time limit (e.g., 60 seconds).

- **Timeout Handling**: When the timer reaches zero, the game should automatically end, and the player's progress should be evaluated.

- **Pause and Resume**: Implement the ability to pause and resume the timer. When paused, the timer should stop counting down, and when resumed, it should continue from where it left off.

- **Timer Styling**: Ensure that the timer is visually appealing and that the display updates dynamically as the timer counts down.

- **Configurable Timer**: Make the timer's duration configurable, so it can be adjusted easily in the game settings.

### Acceptance Criteria:

- The game interface should include a countdown timer that starts when the game begins.
- The timer should be visually appealing and clearly visible to players.
- The timer should count down from a specified duration (e.g., 60 seconds) and stop when it reaches zero.
- Players should be able to pause and resume the timer as needed.
- The timer's duration should be configurable in the game settings.

### Additional Information:
Adding a countdown timer will add an exciting element of challenge to our game, making it more engaging and competitive for players.

References:

Countdown examples made with vuejs [https://vuejsexamples.com/tag/countdown/](https://vuejsexamples.com/tag/countdown/) - note that the implementation does not have to be vue specific.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.