Computer Science
Gilmour Academy
Orientation / PD
Search…
Our Curriculum and Department
Intro to Programming
Intro to Web Design
AP Computer Science
Web App Dev
2D Game Design
Class Overview
Gamemaker Studio 2 and Github Setup
Game 1: Bouncing Ball
Turning in your games
Game 2: Maze
Game 3: Ping Pong
Game 4: Breakout
Game 5: Tank Battle
Game 6 Highlights
DO NOT DO:
Game 7: Final Project
FAQ
3D Game Design
Robotics 7
Robotics 8
3D Modeling & Fabrication
Archives
Adiletta Archives
Vanek Archives
Powered By
GitBook
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!
​
Ping Pong Sprite and Sound Resources
​
​
HINTS for assignment!
​
Previous
Game 2: Maze
Next
Game 4: Breakout
Last modified
8mo ago
Export as PDF
Copy link
Contents
Ping Pong Instructions
Ping Pong Sprite and Sound Resources
HINTS for assignment!