Feedback
Tell us:
  • Idea
  • Question
  • Bug

$ 10.00
By purchasing and downloading this license, you are entitled, as buyer, to use the product in ONE SINGLE NON- COMMERCIAL PROJECT - details
or

Description:
Hit tests, simple AI, Mouse gameplay and keyboard. Action Script 3.0. Fully functional, with comments.

This how this pong game runs: there are 2 games in here, the link to their Action Script documents are the movie clips: "PongGame"(Frame 2) and "PongGame2Player"(Frame 5).

Button and highscore scripts are in the flash file. The games themself are at the AS3 document linked through the MovieClips "PongGame"(Frame 2) and "PongGame2Player"(Frame 5).

I have tried to give variables logical names so they are easy to find. Norwegian words can happen, sorry about that.

If you are creative you can use this code to make a breakout game

How would Pong been made on a Star Trek pad? Maybe like this. Have a look.

3 Comments


bgaby88

Posted on 2009 Jun 03

:P nice but if I play multiplayer and start and leave the 2 panels unmoved the ball will begin to gain speed and after some seconds it will jump out of screen trough one of the pannels.
stian

Posted on 2009 Jun 03

To bgaby88:
This is a counter in the programming code that easly can be fixed to your setting. By saying:
if (counter < 10){
counter ++;
} else {
//nothing
}

Now the speed can't get higher then 10 f. exa.

Thanks for telling me though, I will update the file.
stian

Posted on 2009 Jun 03

The solution is to add:

if (ballDX > -0.7){
ballDX *= -1.1;
} else {
ballDX *= -1;
}

at line 235 in PongGame2Player. I can't upload a newer version it seem.

Do you have any comment or questions about stian file?


Please register & before you post!
Views 2398
Purchases 7
Buyer Rating
1 2 3 4 5
Leave a Comments 3

Details

Uploaded: 03 June 2009

Opens With: Flash CS3 (9+)

Files Included: .FLA, .AS

Size: 628kb

Action Script: AS3

Resolution: 854x480/ 16:9

Documentation: bad

Do you like this file?