Friday, December 6, 2019

Release 0.4

Internal PR

Issue #1

It was difficult to find a good PR to work on, but found a good one to work with: https://github.com/Seneca-CDOT/telescope/issues/467

Thought this would be a quick fix, but it was a bit harder than I thought, the padding for bullet point and numbered list was all off, If the padding for whole site was taken out, it seemed to go back into the wrapper, but that was a good fix, it had to have some other issue.

Checked the main.css file and started debugging every property working on the post-content. It wasn't making any sense, then noticed, the ul and ol tags were not handled separately like others in CSS, so once I figured the right pixel to push to the right, I added the necessary changed and requested for PR: https://github.com/Seneca-CDOT/telescope/pull/477


Release 0.4


External PR

This was a very exciting project for me, it is a simple game that needs a lot of features and bug fixes to work on.  Since 0.4 required fixes more than what we did for 0.2, I decided to work on many features at once.

First Issue

While running the game I noticed all the label in the game was off or miscolored for the background 


It took some time to understand and read the code as there were no comments on any files. It took some time to fix it but once I understood the codes, it was easy to fix all the missing texts in the labels and changed colors accordingly.



Second Issue

I see that there is a lives feature to the game but unfortunately, it wasn't completed. I took some time to understand the method of this feature and tried to debug why it wasn't implemented well. IT took some time but it was easy to understand how he used a global life counter in the StartUp file and it was used to count life remaining. 

The method works such that for every key pressed, we would see if the letter is equal to the one displayed on the game and if it is not we can reduce life by 1. The life was represented as a heart on the bottom corner but it was never displayed as it was never checking for the right statement. 



Upon fixing this issue, this feature made and huge difference in the game. 


Third Issue

Once the life feature was updated, I decided to add an extra feature for the game, scores. Every game has to have a scoring system, If the game goes online, it would be more interesting to have scores to compete. I used the same technique as the author of the game to make sure it doesn't confuse other developers while contributing. Created a label to show the score at the end of each game and handled all the methods required for this feature.



So when the player answers correctly, they will be rewarded with a point and if they answer incorrectly, they would lose a point and a life. If they fail a level, they would see their score and the score will be reset to 0.

PR

Once these features were completed, I tested for a few situations and tweaked it, even more, to run smoothly.