AnsonH / plinko-game

A Plinko game built with Svelte
https://plinko-web-game.netlify.app/
30 stars 17 forks source link

Calculate the index before it touch the sensor #15

Closed manhtantna closed 2 months ago

manhtantna commented 2 months ago

Hi sir, how to calculate final result first ( no need to wait ball collide sensor) . the client result is for view only

AnsonH commented 2 months ago

Hi @manhtantna, unfortunately my current implementation does not support pre-computing the final result of the ball 🙇

Looking at this Stack Overflow answer, it's possible to pre-compute the entire path, store in an array, then replay the position of each frame. However, I don't think I'll be re-writing the Plinko engine just to support this feature

manhtantna commented 2 months ago

Thank you

insphererahul commented 2 months ago

@manhtantna Could you please share you solution if there is any change you found any solution. As checked the above stake solution but unable to complete it.

Let me know if any solution you have.

manhtantna commented 1 month ago

@insphererahul i change to other engine

insphererahul commented 1 month ago

@manhtantna could you please share your code or any reference blog/code. So, I can also complete it. I'm very thankful to you,