A Recipe For Pong Across a network!.

Slides:



Advertisements
Similar presentations
Create a Simple Game in Scratch
Advertisements

T-Mon SERVER CONNECTOR
Create a Simple Game in Scratch
Scratch is a Visual Programming Language
Pong! “The oldest commercially available game in history” Resources created from the video tutorials provided by David Phillips on
Recap Ball Movement How does ball start its movement initially What happens when it hits the top and bottom What happens when it hits the paddle If you.
Code Club Session 3 Shark Eats Fish. Picture of finished product here.
This game is loosely based on the Whack-A- Mole arcade game.  Each game starts with 45 seconds of play.  Moles randomly pop out of holes on the landscape.
Write Your First Computer Game!. Coding: Programming Languages Just like you can speak Chinese to someone who understands Chinese to tell them what to.
 First you have to think up a what kind of game are you going to have it can be any thing from a brick breaker to an role playing game.
Extending the Pong Example Barb Ericson Georgia Tech June 2011.
Scratch Understanding some programming techniques using Scratch Resetting, Parallelism and Events.
Creating pong in scratch Learning objectives: To learn how to program Sensing via colour and sprite proximity O:\ICT\ks3\scratch\scratch Exercises\Creating.
Installing a DHCP Server role on Windows Server 2008 R2 in a home network. This is intended as a guide to install the DHCP role on a Domain Controller.
SURVEY VIEWER HYPACK Sending SURVEY Windows Across the Network to Non-HYPACK Computers. HYPACK Computer Non-HYPACK Computer Running SURVEY VIEWER.
NETWORKING PRACTICAL EXAMPLE. REQUIRED HARDWARE BASICS Network Interface Card Ethernet Cable Client Server.
Using MIT Scratch for Programming and Control Exercise 3 Ball Game Year 9 ICT Autumn Term 2007.
Summer Computing Workshop. Session 2 Input in Scratch  Multi-Character input - This is used when the user is prompted to enter a number or word.  Problems.
©Robomatter – Distribution or copying without permission is prohibited. 3B STEM Computer Science 1 ©Robomatter – Distribution or copying without permission.
Today's Ninja Challenge: Make a Network Chat Program!
Catch the Clown Tutorial Tech Camp Fall 2008 Colorado School of Mines.
Geometry. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions are.
Scratch pong challenge Pong is a classic 1970s video game  Open the pongv1.sb2 file in Scratch  Click the.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech June 2008.
TRIGGERS Triggers tell a script to start executing There are four types of triggers: When green flag is clicked When I am clicked When is pressed When.
Introduction to Scratch. What is Scratch? Scratch is a control program that enables you to create your own interactive stories, animations, games, music,
Create a Halloween Computer Game in Scratch Stephanie Smullen and Dawn Ellis Barb Ericson October 2008.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني.
How to create a basic game in Scratch. The Scratch Stage The Scratch stage is 480 pixels wide and 360 pixels high x increasesx decreases.
ICT/COMPUTING RULES Only use software allowed by the teacher
* pls connect PC via Lan cable to DVR * click Intranet icon, then click the “content”
SURVEY VIEWER Note: SURVEY VIEWER functions are now available from the Remote Viewing that is built into HYPACK SURVEY. SURVEY VIEWER still works, but.
Creating a Simple Game in Scratch Barb Ericson Georgia Tech May 2009.
If we don’t subnet and use as our subnet mask then we use all of our IP addresses on one network. This is not an efficient use of our Class.
© 2003, Cisco Systems, Inc. All rights reserved.
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Create a Halloween Computer Game in Scratch
MOM! Phineas and Ferb are … Aims:
Scratch for Interactivity
Stage 1 Before you start to script the game you need to create the assets. Stage 1 will help you to create your background image, score zones, paddles.
Scratch Unit Overview We are going to look at computer programming and how to create your very own computer game The piece of software we will be using.
Exploring Computer Science Lesson 4-13
Exploring Computer Science Lesson 4-14
Games Programming in Scratch
Scratch – Simple Programming
Lamp Error reset Method to solve “Lamp Error” problem
Scratch for Interactivity
The One Where You Scratch
Learn… Create… Program
Exploring Computer Science Lesson 4-14
Scratch – Simple Programming
Chapter 1 Minitab Recipe Card
Learn… Create… Program
The starting point for all activity Click your mouse to continue!
Lesson Objectives To understand how to make sprites interact
Exploring Computer Science Lesson 4-13
/ / / / / /27.
Unit 5 Basic Motion Skills
Game Over Module 4 Lesson 2.
Learn… Create… Program
Learn… Create… Program
Exploring Computer Science Lesson 4-14
Exploring Computer Science Lesson 4-13
Creating a Simple Game in Scratch
CSC 221: Introduction to Programming Fall 2018
Catch Game Cards Catch Game Cards Make a Card Go to the Top Fall Down
Scratch – Simple Programming
Presentation transcript:

A Recipe For Pong Across a network!

From the Share menu on one machine (this will be the server) click Host Mesh: BYOB will then report the IP address of that machine. From the Share menu on the other machine (this will be the client) click Join Mesh and enter the other machine’s IP address.

The Sprites

Creating Sprites On the server create a Ball & LeftBat, then right click each sprite and click Share sprite. The client creates RightBat and shares. The server creates four walls, called LeftWall, RightWall, TopWall, and BottomWall.

Controlling The Bats On the server, LeftBat has two scripts responding up/down key by moving up/down and broadcasting a LeftUp/LeftDown message across the mesh. RightBat responds to RightUp/RightDown messages by moving up/down.

Client Bat Scripts On the client the roles are reversed: LeftBat will respond to broadcast messages RightBat to key presses

Server Ball Scripts The ball resets the game (scores, positions etc) when the green flag is clicked, then starts a game by broadcasting the PlayGame message. The ball moves regularly, bouncing off bats, top and bottom walls, and updates the score before restarting the game on bouncing off a left/right wall.

Client Ball Scripts On the client the ball is controlled by two simple scripts: