Flash components Flash files Games

Pong Star Trek Computer Design

$10.00
By purchasing and downloading this license, you are entitled, as buyer, to use the product in ONE SINGLE NON- COMMERCIAL PROJECT - details
ID: 1672 | Views: 1154 | Downloads: 6
Or

morestian
Uploaded By: stian Author
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.

ASK Ask a question & Live a coment (Public)
morebgaby88
bgaby88 said
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.

morestian
stian author said
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.

morestian
stian author said
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.


more

Do you have any comment or questions about stian file?


Please register & login before you post!

Start $1

        Flash files, Flash components

  Sell & Buy Flash

affiliate programm 10%

bonus system

bonus system

Login or Email Password  (Forgot?)

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

Keywords: pong,  star,  trek,  breakout,  ping,  players,  player,  keyboard,  mouse,  gameplay,  arcade,  

Do you like this file?