Sample Portfolio
- Kimberly Agosto
- Dec 10, 2018
- 1 min read
For my sample app I will make a game that allows for the user to shoot hoops through a basket.
I know that I will need to use the p5.play library in order to create different sprites that would "shoot through" the hoop. I will also make an array for a message every time the player gets a hoop. When the player gets 10 hoops they will win, in which I will create a separate stage with a winning screen.
I know that I will have to create new sprites and then remove them when they leave the canvas. I know that I will need to incorporate gravity. What I don't know is how to make the mouse a point of attraction but not so much so that the sprite follows the mouse (ie, so that you aim and click once and see if the sprite goes into the hoop, rather than drag the sprite into the hoop). I also don't know how to create a different stage without keypressed if statements, but I think that if I make an if statement that creates (or calls up) a different stage when 10 sprites go through the hoop it might work.
I also need to identify the parameters and the overall code for when the sprites go through the hoop.
Comments