Game 3: Ping Pong
With Ping Pong students learn to deal with multiple player inputs as well as create a simple scoring system.

Ping Pong Instructions

1
///Bounce against walls -- Only Above and Below
2
3
//Back up ball before collision
4
x=xprevious;
5
y=yprevious;
6
7
//Bounce for vertical collision
8
if(place_meeting(x,y + vspeed, other))
9
{
10
vspeed = -vspeed;
11
}
12
Copied!

HINTS for assignment!