Hi,
Any ideas any1 can throw on how this could be achieved? It looks completely random but it is still not random.
http://www.yoambulante.com/en/labs/landingball.php
cheers,
? [import]uid: 3826 topic_id: 11446 reply_id: 311446[/import]
Hi,
Any ideas any1 can throw on how this could be achieved? It looks completely random but it is still not random.
http://www.yoambulante.com/en/labs/landingball.php
cheers,
? [import]uid: 3826 topic_id: 11446 reply_id: 311446[/import]
I was going to ask if you downloaded the source and had a look at it, and then I noticed they have taken the source down.
I would also like to see how this was accomplished. [import]uid: 5317 topic_id: 11446 reply_id: 41496[/import]
take a look at our pinball sample code
c [import]uid: 24 topic_id: 11446 reply_id: 41577[/import]
Carlos,
the link is not about the pinball, it is about how you can choose a pre-determined location and make it appear totally random.
cheers,
? [import]uid: 3826 topic_id: 11446 reply_id: 41587[/import]
I think in the example on that page, he’s just precalculating all the paths. (He does say 1250 paths).
since he has 9 numbers, there will be 81 possible pairs of starting number and ending number. for these 81 pairs, he must have determined required path(s) for each position of starting number.
Once above are known, all you have to do is play that specific path.
[import]uid: 48521 topic_id: 11446 reply_id: 41602[/import]
Hi Chinmay,
That is still not helpful, I was looking more for someone trying to attempt a pseudo code or actual code on how it can be done.
thanks for trying anyways,
cheers,
? [import]uid: 3826 topic_id: 11446 reply_id: 41704[/import]
well pseudo code will be two part
precalculation of path
0) Setup world
actual game play
take user input abt end position
search database to find the starting points on the top which result in end position. You will likely have multiple choices here.
For scrolling floor you have determinate system. i.e at any given time, you can calculate what state the scrolling floor would be at any future time.
do a search within search results of step 2 above, to find path such that difference between
a) time for drop simulation and
b) time for scrolling floor to reach desired end position
if within acceptable limits. The acceptable limits here are acceptable limits for time required to send ball up from scrolling floor to starting position
note that b) above will have to be done for multiple passes of scrolling floor
May be this is too vague, but this is how essentially it’s done. The reason i don’t want to write code is because it will take way too much time to precalculate in corona as you can’t speed up physics in corona. [import]uid: 48521 topic_id: 11446 reply_id: 41816[/import]
Hi guys!
this is funny, read all the crazy thoughts and conclusions you got here, hehehe, quite interesting though. This algorithm uses reverse physics to predict the landing position and yes it is 100% totally at random, it will never repeat a path, the chances of that happen are extremely low. The reason why the source code was remove from the website is because a gambling company bought it and they ask for remove it, but!! the physical file is still on the server (same location), so grab it and don’t tell anyone, hehehe… http://www.yoambulante.com/scripts/flash/LandingBall.zip cheers! [import]uid: 75640 topic_id: 11446 reply_id: 44946[/import]
@alex,
you are a legend. Thanks for that. Hope to see more code samples from you now that you are on Corona.
cheers,
? [import]uid: 3826 topic_id: 11446 reply_id: 44949[/import]
reverse physics? wow!
thanks for the zip file! [import]uid: 70635 topic_id: 11446 reply_id: 44955[/import]