|
-
December 31st, 2009, 08:09 AM
#1
Read contents of flash file
Hello,
A friend of mine built a game in flash. The object of the game is to pair 3 or more of the same items (much like the game bejeweled (http://en.wikipedia.org/wiki/Bejeweled).
I'd like to create an "auto pilot" of the game.
My idea is to "read" each row in a grid and search for matches.
I have NO IDEA on how to read data from flash files.
Here's a picture of the game itself --> http://img705.yfrog.com/img705/6761/20185816.jpg
Any help will be appreciated.
-
January 1st, 2010, 07:20 PM
#2
Re: Read contents of flash file
I have NO IDEA on how to read data from flash files.
Reading a flash file is not a trivial task by any stretch of the imagination. But anyway, Here is a link explaining the flash file format.
-
January 1st, 2010, 08:08 PM
#3
Re: Read contents of flash file
A simpler, but still difficult, task would be to use a screen capture approach. Just load the game up, capture a screenshot of the game and then do some pattern matching to figure out where each element is. As there are a limited number of elements and they are always going to be laid out in a perfect grid, it'd be pretty easy to find all occurances of each element.
www.monotorrent.com For all your .NET bittorrent needs
NOTE: My code snippets are just snippets. They demonstrate an idea which can be adapted by you to solve your problem. They are not 100% complete and fully functional solutions equipped with error handling.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|