CS112
Assignment #2
Due Friday Feb. 6th by the beginning of lecture.
In this assignment you will be creating a simple game. The goal of the
assignment is to become familiar with variables, conditionals, and loops.
The game is a variation of Pong in which there is a bouncing ball and
the player has to use a paddle to keep the ball from going off the screen.
You can start with the program we developed in class and add the game
feature listed below. Note that this assignment is more complicated than
the previous one, if you can't add all of the features, it is okay to
turn in a game with only some of the features working.
- Name the project "[accountname]-project2" where [accountname]
is the name of your Scratch account. (E.g. I would use the name:
tsoule88-project2
-
The ball should bounce off three sides of the screen and the player should use
the mouse to slide a paddle to keep the ball from leaving the other side of
the screen.
-
Add a variable for points. The player earns points every time the ball hits the paddle.
-
Add a second sprite that appears at a random position on the screen.
If the ball hits it, the sprite should disappear and the player earns some points.
-
Add an appropriate background.
-
Add a "splash screen" with instructions. This is a screen/background that appears when the game starts
and displays the instructions. Include a button for the player to press to start the game.
-
Add some sound effects.
- You may make additional changes if you want. Some suggestions include: have the background
change occasionally during the game; include levels where the paddle gets smaller/the ball goes faster;
include things the player doesn't want to hit; give the player multiple lives; etc.
- In the description of the project (click the "See project page" button in the upper right)
list the changes you made to the project. Be sure to include an extra changes that are not
part of the assignment, some extra credit will be available for particularly impressive projects.
- Add the project to the "CS112, Spring 2015, UI" portfolio. (On the project page you will need
to click the share button, it's on the upper right side of the window.)
This turns in the project. The TA will find the project in the
portfolio to grade it.