WEEK 6
LINK TO MIDTERM PROGRESS
For my midterm project, I am going to create a Halloween-themed game, where the user has to control a person on the screen to collect candy and log points. But, if they hit something that is not candy, they lose points. I was able to build off of one of the questions on the worksheet to create the foundation of the game, where the green square is controlled by the arrow keys, and when it hits the purple circles they disappear.
The hardest part of this was honestly getting the key commands to work to work. For some reason, every time I run the sketch I have to click on the canvas to calibrate it or something. If I don’t do this, nothing happens when I press the keys. This took a lot of trial and error to figure out and was really frustrating, because I knew that the code was correct.
First I used keyPressed, but that moved the square by one step, not continuously if it was held down, so I changed it to keyISDown:
This week, I have to change the square to something better, and add the array of things that are not candy (vegetables maybe?) and write a new function to calculate the points. I also want to create a start page.