HOME | DD

Trip-Dot — Color Pong by-nc-sa

Published: 2008-03-24 06:51:36 +0000 UTC; Views: 10940; Favourites: 122; Downloads: 423
Redirect to original
Description *Update 04/19/2008*
I am making the source file for this available. It seems people are as intrigued by this little tech demo as I am. Unfortunately, I feel that it needs vast improvement in the fun department. So if any of you know actionscript and want to make improvements to this, you are most welcome to and will get credit. Some improvements that I personally would like to implement when I get a little time to do so are

- First and foremost, I HATE how the ball and the paddle interact. I want to have the ball bounce more naturally off of the paddle. Like the farther towards the outside of the paddle it hits, the more horizontal its trajectory. And if the ball hit the center of the paddle it would be more vertical in flight.

- More levels. Seriously, rectangles get old.

- More precise motion and color recognition. I mean, it works, but its not perfect. If there are any pros out there who think they can update my algorithms for this, I will happily make the changes.

- Anything else that would be fun.

I apologize for the crude manner of distribution but the .fla can be found here [link]

And Here are the 2 pages of code that I have for this so far.
Title Layer/Frame Code: [link]
Game Layer/Frame Code:
[link]

The formatting of the above Code pages is NOT pretty, and it may be more readable just downloading the .fla if you are interested.

So if anyone wishes to update my code or .fla file let me know, or just update it and send it to me and I will post the update here with full credit given to the changes.

I was learning actionscript as I wrote this, so I do apologize for the sloppy code habits.

Peace
*/end update*

03/23/08
A Project I did in the guise of Pong, or Arkanoid, which ever you prefer. A webcam is necessary to play.

The Basic idea is that movement in the webcam guides the pong paddle around the screen. Whatever color the player is holding as they move the paddle around will affect the game differently. Red, Green, and Blue colors are detected whenever the ball hits the paddle and will power up the player's paddle in different ways.

I find that the game works perfectly with overhead ambient lighting.

I use Lego bricks to play it as they are very colorful and fun in and of themselves.

Give it a try, tell me what you think.

Also I would like to add that this is really just a demo of my attempt at this sort of camera and color recognition using actionscript. I would like to touch up a few things as well as add more levels when I get the chance.
Related content
Comments: 85

Gurt-B-Froe [2011-12-23 01:23:34 +0000 UTC]

I like the little up and down the wall quirk in this game. ^^

The game itself is "Break Out" like in nature.

👍: 0 ⏩: 1

Trip-Dot In reply to Gurt-B-Froe [2011-12-26 18:22:16 +0000 UTC]

Yea it was really just to see if I could do it ha Thanks for checking it out

👍: 0 ⏩: 1

Gurt-B-Froe In reply to Trip-Dot [2011-12-26 18:24:20 +0000 UTC]

You're welcome!! ^^

You did well.

👍: 0 ⏩: 0

Sonicfanatic32 [2010-12-28 23:20:51 +0000 UTC]

what a brilliant way to bore myself to death...

👍: 0 ⏩: 1

Trip-Dot In reply to Sonicfanatic32 [2010-12-29 20:27:23 +0000 UTC]

..Thank you??

👍: 0 ⏩: 1

Sonicfanatic32 In reply to Trip-Dot [2011-01-03 21:44:41 +0000 UTC]

lol you're welcome

👍: 0 ⏩: 0

Trip-Dot [2010-04-25 00:51:41 +0000 UTC]

All it does is control the game. Nothing is saved. If you are really that concerned you I have posted all of the code involved in this game if you want to read through it. There is nothing in there saving images anywhere.

👍: 0 ⏩: 0

Warriorskitty [2010-04-23 23:31:43 +0000 UTC]

Excuse me, I came here, and I accidentally clicked accept. Could you delete the video that got taken?

👍: 0 ⏩: 1

Trip-Dot In reply to Warriorskitty [2010-04-23 23:47:19 +0000 UTC]

I assure you no videos are taken, its only play back.

👍: 0 ⏩: 2

Warriorskitty In reply to Trip-Dot [2010-04-24 00:09:58 +0000 UTC]

Okay thank you, I'm sorry I didn't play, and I apologize for scaring myself silly.

👍: 0 ⏩: 0

annpokenutter In reply to Trip-Dot [2010-04-23 23:59:07 +0000 UTC]

What does playback do here? I'm her brother, and I'm just as concerned as she is.

👍: 0 ⏩: 0

erythele [2009-08-04 03:31:57 +0000 UTC]

...but this isn't Pong. It's Breakout...

👍: 0 ⏩: 1

Trip-Dot In reply to erythele [2009-08-04 07:32:28 +0000 UTC]

There is two player mode

👍: 0 ⏩: 0

thesense [2009-07-04 03:57:27 +0000 UTC]

great! does that work with flash 8? if so - is there a source available for it?

👍: 0 ⏩: 1

Trip-Dot In reply to thesense [2009-07-04 04:44:49 +0000 UTC]

It was written in actionscript3 So I am unsure whether or not it will work with flash 8, I am unfamiliar with the versions and what they support sorry heh.

The source codes are here...
[link]
and
[link]

👍: 0 ⏩: 0

oddbydefault [2008-06-11 22:38:49 +0000 UTC]

pure GENIOUS.

honestly. i didnt even know it could be done....

👍: 0 ⏩: 1

Trip-Dot In reply to oddbydefault [2008-06-12 01:10:48 +0000 UTC]

Thanks, I'm hoping to get back to work on this thing in the next week or so. I want to add more single player levels and add something to the multiplayer

👍: 0 ⏩: 0

SmashiiMan [2008-06-06 19:37:52 +0000 UTC]

lol i made the ball excape the box lol. sry i glitched. anyways. this is AMAZAING

👍: 0 ⏩: 1

Trip-Dot In reply to SmashiiMan [2008-06-07 09:04:40 +0000 UTC]

Thanks, I might actually have some time to work on this thing soon heh.

👍: 0 ⏩: 0

samy992 [2008-05-29 03:46:17 +0000 UTC]

that is so cool!

👍: 0 ⏩: 1

Trip-Dot In reply to samy992 [2008-05-29 06:13:33 +0000 UTC]

Thanks, I appreciate it.

👍: 0 ⏩: 1

samy992 In reply to Trip-Dot [2008-07-14 15:54:48 +0000 UTC]

you are so welcome!
don't worrie about it!

👍: 0 ⏩: 0

aidanthebananaman [2008-05-11 14:57:39 +0000 UTC]

that's amazing!! I love this x3

👍: 0 ⏩: 1

Trip-Dot In reply to aidanthebananaman [2008-05-11 18:15:58 +0000 UTC]

Thanks, I appreciate it.

👍: 0 ⏩: 0

MumboMagic [2008-05-01 18:00:44 +0000 UTC]

loveeee it =]

👍: 0 ⏩: 1

Trip-Dot In reply to MumboMagic [2008-05-01 18:58:47 +0000 UTC]

Ha thanks.

👍: 0 ⏩: 0

Blaydrix [2008-04-22 19:33:31 +0000 UTC]

My ball just disappeared.

👍: 0 ⏩: 1

Trip-Dot In reply to Blaydrix [2008-04-22 20:03:48 +0000 UTC]

In which way heh. When I get around to it I will fix the errors that you guys are reporting. I appreciate them.

👍: 0 ⏩: 1

Blaydrix In reply to Trip-Dot [2008-04-22 20:29:31 +0000 UTC]

I was playing the one player one, and it went off the side of the screen. I didn't lose a life or anything, the game just resumed as normally, just ball-less.

👍: 0 ⏩: 1

Trip-Dot In reply to Blaydrix [2008-04-23 00:01:56 +0000 UTC]

Cool thanks for the info.

👍: 0 ⏩: 0

wraii [2008-04-20 12:59:45 +0000 UTC]

Umm great game to start with
but at one stage i had my paddel right as far to the left as possible
and the ball hit it and flew off the left side of the screen. just something you might want to look at

👍: 0 ⏩: 1

Trip-Dot In reply to wraii [2008-04-20 16:24:43 +0000 UTC]

Thanks, ill check it out next time I'm working on it.

👍: 0 ⏩: 1

Female-InuYasha In reply to Trip-Dot [2008-04-20 22:11:52 +0000 UTC]

yeah, and it can also get stuck bouncing on one side
Otherwise, IT'S AWESOME!

👍: 0 ⏩: 1

Trip-Dot In reply to Female-InuYasha [2008-04-20 23:21:52 +0000 UTC]

Yea I need to redo the way the ball is constrained within the game area heh.

👍: 0 ⏩: 1

Female-InuYasha In reply to Trip-Dot [2008-04-27 19:20:45 +0000 UTC]

Still, it's awesome!

👍: 0 ⏩: 0

kestinu [2008-04-20 12:04:35 +0000 UTC]

Addicting but needs a pause button

👍: 0 ⏩: 0

lakoneko [2008-04-19 23:59:54 +0000 UTC]

Cute game but I lost the ball on 01 (went off the side of the screen without returning). How do you get it back?

👍: 0 ⏩: 1

Trip-Dot In reply to lakoneko [2008-04-20 00:38:01 +0000 UTC]

Heh restart the program, sorry, still really buggy.

👍: 0 ⏩: 1

lakoneko In reply to Trip-Dot [2008-04-20 04:30:50 +0000 UTC]

okay! Thanks!

👍: 0 ⏩: 0

snyped [2008-04-19 22:33:49 +0000 UTC]

I click 'Accept' when it asks.. but it always stays on the numbers screen. Any ideas?

👍: 0 ⏩: 1

Trip-Dot In reply to snyped [2008-04-19 22:45:01 +0000 UTC]

clicking the green 01 takes you to the single player demo, the green 02 takes you to the multiplayer demo.

👍: 0 ⏩: 1

snyped In reply to Trip-Dot [2008-04-20 19:08:50 +0000 UTC]

yeah.. I figured that out just now, so now I feel kinda silly ^_^;;

👍: 0 ⏩: 1

Trip-Dot In reply to snyped [2008-04-20 20:50:28 +0000 UTC]

Np, you aren't the first one heh.

👍: 0 ⏩: 0

crabmuffin [2008-04-19 20:58:14 +0000 UTC]

XD My mom and I have been playing with this on her computer for nearly an hour. We're entertained easily, but you're still a genius.

👍: 0 ⏩: 0

mello-the-girl [2008-04-19 19:24:55 +0000 UTC]

this is awesome!

👍: 0 ⏩: 0

emmasea [2008-04-19 18:14:47 +0000 UTC]

i don't think my computer is supposed to restart every time i hit the 'Accept' button

👍: 0 ⏩: 1

Trip-Dot In reply to emmasea [2008-04-19 18:26:15 +0000 UTC]

Sounds like a serious hardware issue. That sucks.

👍: 0 ⏩: 0

Karlibell22 [2008-04-19 13:46:02 +0000 UTC]

Omg that's so neat x3 The way I had my lighting is cool 'cuz it changes my colors..

👍: 0 ⏩: 0

Changeling007 [2008-04-19 12:21:06 +0000 UTC]

that was fun... until the ball clung to the right side of the screen and flew off into those other 2 boxes... .________.

👍: 0 ⏩: 0

JenJessie [2008-04-19 11:27:29 +0000 UTC]

It doesn't work for me but there's nothing wrong with my webcam. T.T My webcam doesn't show in the game that's all. I'm using a PC btw if that makes any difference. The whole webcam-screen is black. ):

Just giving you feedback, this game seems awesome otherwise!!

👍: 0 ⏩: 1


| Next =>