1 mark for a “shooter”, that moves up and down (or left and right) reversing direction when it hits an edge.
In the sample screenshots, the shooter is the brown box (bouncing up and down) on the left side of the screen.
However, the exact size, location, and speed of the shooter are up to you.
1 mark for a “target”, that moves up and down (or left and right) reversing direction when it hits an edge.
In the sample screenshots, the target is the green circle (bouncing up and down) on the right side of the screen.
However, the exact size, location, and speed of the target are up to you.
2 marks for making a “projectile” appear to come out of the shooter when the mouse is clicked (anywhere) and fly across the screen. The projectile should disappear either when it hits the target or the edge of the screen.
In the sample screenshots, the projectile is the blue triangle with the red dot on the end.
The exact size and speed of the projectile are up to you. Whether or not the projectile hits the target depends upon when the user clicks the mouse.
1 mark for having “gravity” pull on the projectile so that the projectile’s path follows an arc instead of a completely straight line.
1 mark for making the target “explode” in the following way when the tip of the projectile (the red dot in the screenshot) hits the target: the target explodes by getting bigger (i.e. inflating) and, at the same time, fading away to invisibility. When the target is completely invisible it should re-appear on the screen with its original size, transparency, and movement (so that the player can shoot at it again).
1 mark for keeping track of the number of times the projectile has hit the target, and displaying that on the screen (as in the sample screenshots) using a nice font.
1 mark for making the “shooter” something more graphically interesting than a box. What you decide to draw it as is up to you and should fit with the theme of your game. For instance, you could draw the shooter as a bow (shooting an arrow), or a submarine (shooting a missile), or as a little kid (throwing a snowball), etc.
You can use either images or shape-drawing commands for this part.
1 mark for making the “target” something more graphically interesting than a box. What you decide to draw it as is up to you and should fit with the theme of your game. For instance, you could draw the target as a bulls eye, or an airplane, or as a little kid (about to be hit by a snowball), etc.
You can use either images or shape-drawing commands for this part.
1 mark for making the “projectile” something more graphically interesting than a triangle with a dot on the end. What you decide to draw it as is up to you and should fit with the theme of your game. For instance, you could draw the projectile as an arrow, or a missile, or as a snowball, etc.
You can use either images or shape-drawing commands for this part.
Processing Forum