This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-11-22 17:21:32

kradeki
Scratcher
Registered: 2008-10-01
Posts: 4

Two-Player Network Pong Game Demo

Hi everyone,

I made a Scratch game that I think some of you will be interested in.  This game uses the new remote sensor connections feature (as of Scratch version 1.3) to let two computers running Scratch talk to each other.  So, if you and a friend both have a Scratch Board, you can play Pong against each other from anywhere across the internet.

The setup is tricky because it requires running a Python server program, but I wrote a detailed guide to explain how it everything works.  You can find the guide and all the files here:
http://scratchconnections.wik.is/Projects/Two-player_Network_Pong

My hope is that this demo will help people who want to make multiplayer games figure out how to send variable values back and forth between two Scratch applications.

Here is the project page:
http://scratch.mit.edu/projects/kradeki/329080
Please comment!  I want to hear what you think.  (Note that you cannot play multiplayer network games on the web.)

My next goal will be to make a demo of a 3-player game that doesn't require Scratch Boards, but this project might have to wait until I survive my finals. ;-)

Meanwhile, please have fun with this!

Offline

 

#2 2008-11-22 17:23:05

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Two-Player Network Pong Game Demo

I've been trying to figure out how to do something like this for a while. Thank you!


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2008-11-22 17:24:45

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Two-Player Network Pong Game Demo

Great!  I'm going to be checking this out for sure!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#4 2008-11-22 20:07:51

Lucario621
Community Moderator
Registered: 2007-10-03
Posts: 1000+

Re: Two-Player Network Pong Game Demo

Me too, what the previus guy said!


http://i.imgur.com/WBkM2QQ.png

Offline

 

#5 2008-11-23 05:12:21

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Two-Player Network Pong Game Demo

Unfortunately, I don't have two scratch boards so actually testing this application is impossible.  But you have written it so clearly and it is documented so well that I think I can figure it all out and use it for a template for things I want to do.  Thank you so much!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#6 2008-11-25 19:20:31

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Two-Player Network Pong Game Demo

Can anyone who is good with this stuff explain how to make it work without using scratch boards and using windows?

I tried modding it and running it on 2 of my computers (1 is xp and 1 is vista) but I couldn't get it to work.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

Board footer