the-isf-academy / quest

Wrapper over Python Arcade for first-year CS students making a top-down adventure game
0 stars 2 forks source link

Class Timer #32

Open 0010090 opened 4 years ago

0010090 commented 4 years ago

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

wolfj95 commented 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.

wolfj95 commented 4 years ago

@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

wolfj95 commented 4 years ago

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!

Xuxi917 commented 4 years ago

Iris' Reflection~

  1. I think our group's teamwork was the best part of the project. Irwin is a great teammate and we worked together in order to reduce our commit issues to a minimum. Our workload was pretty even and we pitched in ideas and discussed about our feature every class.
  2. The feature difficulty was harder than I expected as I hadn't realised I needed to update the timer every time the game refreshed instead of just injecting a countdown function. By the time I had realised that, we only had one class left and didn't really know what to do.
  3. I would obviously say to try and understand how the quest game works. However, I think the most important thing is to maintain teamwork especially as it is harder to work together completely online.
0010090 commented 4 years ago

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.