NEW
Font size
WorksheetsPong Game Quiz
Total questions: 20
Worksheet time: 15mins
What is the first step in creating a Pong game?
Add collision detection
Choose a sprite for the ball
Program the paddle
Set up scoring
Which backdrop option is mentioned in the tutorial?
Desert
Mountain
Boardwalk
Forest
What happens when you put 'move 10 steps' in a forever loop?
The sprite moves once
The sprite moves continuously
The sprite stops moving
The sprite changes direction
Which block prevents the ball from getting stuck on walls?
Turn 90 degrees
Move 10 steps
If on edge, bounce
Point in direction
What direction number creates diagonal movement?
90 degrees
180 degrees
45 degrees
0 degrees
How do you make the paddle follow the mouse?
Use 'mouse y' block
Use 'mouse x' block
Use 'touching mouse' block
Use 'distance to mouse' block
What does the X coordinate control?
Up and down position
Left and right position
Sprite rotation
Sprite size
Which sensing block detects mouse position?
Mouse clicked
Mouse down
Mouse x
Mouse touching
How do you check if two sprites are touching?
'Distance to' block
'Touching' block
'Near' block
How many degrees should the ball turn to bounce back?
90 degrees
45 degrees
180 degrees
270 degrees
How can we determine if ball’s left edge is hitting a different shape on our canvas named box?
The following code moves a ball across the screen at a rate of dx in the x direction and dy in the y direction.
What do we need to add to line 19 to have the ball bounce off the top of the window?
dy = -dy;
ball.setPosition(ball.getX(), getHeight() - ball.getRadius());
dx = -dx;
dy = -dx;
A chase game requires at least two sprites.
True
False
What statement should we use to determine if ball is hitting the bottom edge of the window?
Which sprite property would you change to make the sprite turn in a circle?
spirte.x
sprite.y
sprite.rotation
sprite.spin
Makes the sprite bounce off the target when they touch each other. The target keeps moving as before.
sprite.displace(tgt);
sprite.collide(tgt);
sprite.bounce(tgt);
sprite.bounceOff(tgt);
Makes the sprite push the target as long as they are touching each other. The sprite keeps moving normally.
sprite.displace(tgt);
sprite.collide(tgt);
sprite.bounce(tgt);
sprite.bounceOff(tgt);
Makes the sprite and the target bounce when they touch each other. Both the sprite and the target change how they are moving.
sprite.displace(tgt);
sprite.collide(tgt);
sprite.bounce(tgt);
sprite.bounceOff(tgt);
To make a sprite slightly rotate back and forth(wobble effect), we use
sprite.rotation = sprite.rotation + 1
sprite.rotation = sprite.rotation - 1
sprite.x and sprite.y
sprite.rotation = random number(-2, 2)
Makes the sprite stop when it runs into the target. If the target is moving, it will push the sprite with it. The target keeps moving as before.
sprite.displace(tgt);
sprite.collide(tgt);
sprite.bounce(tgt);
sprite.bounceOff(tgt);
