*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.
Thanks, I really don't like how the ball interacts with the paddle, I should change something about it so it takes angle into account. Thanks for the suggestion
i dont know all that much about actionscript so i don't know how hard this would be but i think you should try and find a code that will give the ball a better sense of geometry when it bounces on the walls. I don't really know how to explain it but its weird because sometimes the ball is in someways out of character here. Like for example if it hits the paddle and hits one of the walls on the side then the top and a nearby brick it just reverses itself and goes back to the spot where it hit the top part then continues back down in the same trajectory which pretty much is what makes it repetitive. I would say to look at online pool games especially those made in flash and as around in forums to see how to achieve a certain bounciness that would not get repetitive.
otherwise this is really awesome, I love the idea of two classic games being controlled with the webcam its brilliant lol.
--
Now that you've joined the dark side I'm contractually obligated to inform you that, we only have one cookie...
and I ate it
yours trully, - The dark sith master Lord Smileius.
At the risk of sounding like an idiot, how do I get this to work? It turned on my webcam and I have the flash plugin, but nothing happens. I waved my hand around in front of the camera, and even tried it with my bright red plushie. >>
--
In many aspects of life, having money is a good thing. That is, unless you smell of cow manure. Then a shower is a good thing. I RAID GALLERIES! 8D --> [link] I haz anime 8D --> [link]
XDDD You're the reason I finally used the built-in webcam on my laptop...LOL. This game is fun, although once all the blocks were gone it didn't end or go to a new level. I understand that it's just a practice for the concept of the webcam business, though, and in that aspect it's really cool!
I used the lids of dry erase markers to guide the paddle--I held the marker up so the lid was in the webcam's view and that worked great.
Some people have been asking me about this stuff so I decided to gather all information in one single article on how to make your own portfolio, in a profesional and clean looking way. I hope it's useful, because these steps I myself take.
In this article I will provide you some ideas how you can build your own homestudio for considerably cheaper price than it would cost to use "official" studio gear. I will also show you few examples where I have used the gear I describe during this article.
DeviantArt is full of extremely well produced artistic fashion and fine art photographs. Make up. Styling. Creation of scenery. Story. Light. Glamour. A combination of these expressions sometimes make up a great photograph. But the protagonists of these pictures are usually female.
So... now it's the time for male models to come into focus.
`karemelancholia is one of the most genuine deviants you could ever met. Always active and a true deviantART cheerleader and supporter in every aspect. You can always count on her to lend a hand or get involved, and you usually will find her doing large amounts of both at any given moment. She's consistently reports on contests around dA, showcases the efforts of her fellow artists and shows her charitable side through various activities. Besides all of this, she's a truly talented artist which is why she's an obvious choice for deviousness this month. Read More
Devious Comments
--
I can\'t protect you without holding a sword. I can\'t embrace you while holding a sword.
Bring popoqwerty89 back to Youtube!
--
Hot damn.
100% of the people who put statistics in their signatures are gay.
otherwise this is really awesome, I love the idea of two classic games being controlled with the webcam its brilliant lol.
--
Now that you've joined the dark side I'm contractually obligated to inform you that, we only have one cookie...
and I ate it
yours trully,
- The dark sith master Lord Smileius.
--------
~Neolucky-FC
--
In many aspects of life, having money is a good thing. That is, unless you smell of cow manure. Then a shower is a good thing.
I RAID GALLERIES! 8D --> [link]
I haz anime 8D --> [link]
I used the lids of dry erase markers to guide the paddle--I held the marker up so the lid was in the webcam's view and that worked great.
--
*Edgeworth-fans Join me in DA's only Miles Edgeworth fanclub!
~Hatsuharu-Sohma-club Haru Sohma FC
~Zaibach-Empire Zaibach FC
~Nekozawa-Love Nekozawa FC
~Mori-Club Mori-sempai FTW!
More clubs, too
--
"I find that sticking your fingers in your ears and humming loudly solves a whole slew of problems." - cookies to whoever knows who said this!
--
mew... .__.?
Is that suppose to be meow wow....someone has problems. -__-"
Previous Page12345... Next Page