Open 0010090 opened 4 years ago
As part of this feature, you should find a way to optionally display the timer to the player. That would make this a very helpful feature.
@the-isf-academy/pikachu To get started, try to just print the time in the terminal window while the game is running. You can use the maze game as an example because it prints out whenever the player gets a star. After you figure that out, you can start making the timer display in the game window rather than in the terminal
Great work getting this started @the-isf-academy/pikachu !
the first part of this feature is in #44
The timer does not yet include reset()
. You all can continue working on this for your game project!
Iris' Reflection~
Overall, even though we were not able to complete the entire function, I still feel that this process was quite successful. Something notable that went well would be how we solved the issues we had quite quickly; our debugging process was quite fast. However, I seemed to underestimate the complexity of the function. This could be seen when I realised the format of the function does not work with the game. Next time when I encounter a project as such, I will make sure I plan more about the function and make sure I understand what it meant.
In the game, there will be a countdown timer that will start with a certain amount of time. When the timer function will output the amount of time left before the timer hits zero. When the timer hits zero, it will output the signal, causing another function to end the game. The timer will be constant throughout the game. However, the value of the timer could also change. This could happen if the character interacts with a certain object, the timer function gets output from another function, causing the time on the timer to change. The timer would also have a reset function so that the game can be replayed.
https://docs.google.com/document/d/1hzXPEbcCFnlTaciD-FeRDrduL5_qgxjQ10LcLEYgL38/edit?usp=sharing