top of page

MIDTERM PROJECT

12/06/2020

For the midterm project the idea was to create a game where you collect coins but there is an extra coin that will end the game. I managed to make the bad coin 'disappear' but I can't get it to work on the other coins.

Midterm: About

12/07/2020

I managed to make the green coins disappear. Now I'm trying to add the score and the text that changes accordingly but I'm not sure where to call it. It doesn't start at 0 like I want it to but instead it's stuck in the 'you win' text. I also want to add the 'you lose' text when you collect the bad coin but not sure where to start on that since I have to sync it to the green coins.

Midterm: About

12/09/2020

 I was able to make the score work with the green coins with the Professor's advice. Now the problem is with the red coin. When you 'collect' it, you get the text 'YOU LOSE' but it disappears quickly and then it returns to the 'YOU WIN' text. I'm also not sure if I put the 'you win' and 'score' code in the right function. Not sure if this can be worked on now or after sorting the other issues first but I would like for the game to 'stop' once you win or lose, because as of now you can still collect the other coins.

Midterm: About

12/13/2020

I managed to have the text change and stay whenever the red coin is collected. The problem now is if I collect all the green coins after collecting the red one, the texts will overlap and I'll have 'win' and 'lose' at the same time. Also, if we collect all the green coins the number 6 for some reason shows up and overlaps the 'you win'; if we collect the red after the 6 disappears but now the 'lose' will overlap the 'win'. I was also trying to put the !lose Boolean in the coin loop but I might be missing something. I tried going back to the pdfs to refresh my memory but the link expired.

Midterm: About

12/15/2020

I tried following the Professor's advices and now after collecting the red coin before finishing collecting the green coins the text 'you lose' stays and doesn't change. But the issue with the 'you win' and the score stays the same. I think I'm getting confused with the Boleeans.

Midterm: About

12/17/2020

I was checking the example the Prof. wrote and was applying it to my code but I just messed up so many things I think. the worst part is I'm not sure where I'm doing stuff wrong. The 'win' or 'lose' text doesn't show up and the score goes until 6. I changed several things and I'm lost now.

Midterm: About

12/20/2020

I tried something else after looking at another example. I added another red coin and created a class for them. I thought it would be easier to implement since I would need to do something similar than the good coins but not sure why it's not working.

Midterm: About

12/21/2020

I tried another suggestion and it worked but I went right back to the problem of the 'win' and 'lose' text overlapping each other. Since I'm unable to keep working on this project I switched it a little bit and ended up with a different version. I added a timer and removed the 'lose' text. The goal is to collect the green coins as fast as possible and the red coins are just there to distract you.

​

Midterm Project

Midterm: About
bottom of page